relax Bendable trait methods generics

This commit is contained in:
brevalferrari 2025-06-19 23:00:23 +02:00
parent f72a30b972
commit 2cf1ec385f
Signed by: breval
GPG key ID: 913954DA013FAD4F

View file

@ -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,