Implement From<&Handle> for image::Handle

This commit is contained in:
Héctor Ramón Jiménez 2024-08-03 16:20:12 +02:00
parent 169667ef1b
commit e84070acef
No known key found for this signature in database
GPG key ID: 7CC46565708259A7
3 changed files with 36 additions and 20 deletions

View file

@ -101,6 +101,12 @@ where
}
}
impl From<&Handle> for Handle {
fn from(value: &Handle) -> Self {
value.clone()
}
}
impl std::fmt::Debug for Handle {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
match self {