relax Bendable trait methods generics
This commit is contained in:
parent
f72a30b972
commit
2cf1ec385f
1 changed files with 2 additions and 2 deletions
|
@ -222,14 +222,14 @@ use std::{borrow::Cow, convert::Infallible};
|
|||
|
||||
pub trait Bendable: TryFromDataBytes + IntoDataBytes {
|
||||
type Unit;
|
||||
fn bend_into<T: TryFromDataBytes + IntoDataBytes>(
|
||||
fn bend_into<T: TryFromDataBytes>(
|
||||
self,
|
||||
format: <T as TryFromDataBytes>::Format,
|
||||
crop: Crop,
|
||||
) -> Result<T, <T as TryFromDataBytes>::Error> {
|
||||
T::try_from_data_bytes(self.into_data_bytes(), format, crop)
|
||||
}
|
||||
fn bend_from<T: TryFromDataBytes + IntoDataBytes>(
|
||||
fn bend_from<T: IntoDataBytes>(
|
||||
b: T,
|
||||
format: <Self as TryFromDataBytes>::Format,
|
||||
crop: Crop,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue