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 {
|
pub trait Bendable: TryFromDataBytes + IntoDataBytes {
|
||||||
type Unit;
|
type Unit;
|
||||||
fn bend_into<T: TryFromDataBytes + IntoDataBytes>(
|
fn bend_into<T: TryFromDataBytes>(
|
||||||
self,
|
self,
|
||||||
format: <T as TryFromDataBytes>::Format,
|
format: <T as TryFromDataBytes>::Format,
|
||||||
crop: Crop,
|
crop: Crop,
|
||||||
) -> Result<T, <T as TryFromDataBytes>::Error> {
|
) -> Result<T, <T as TryFromDataBytes>::Error> {
|
||||||
T::try_from_data_bytes(self.into_data_bytes(), format, crop)
|
T::try_from_data_bytes(self.into_data_bytes(), format, crop)
|
||||||
}
|
}
|
||||||
fn bend_from<T: TryFromDataBytes + IntoDataBytes>(
|
fn bend_from<T: IntoDataBytes>(
|
||||||
b: T,
|
b: T,
|
||||||
format: <Self as TryFromDataBytes>::Format,
|
format: <Self as TryFromDataBytes>::Format,
|
||||||
crop: Crop,
|
crop: Crop,
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue