Implement From<&Handle> for image::Handle
This commit is contained in:
parent
169667ef1b
commit
e84070acef
3 changed files with 36 additions and 20 deletions
|
|
@ -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 {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue