Enum assembly_core::borrow::Oom
source · pub enum Oom<'a, T> {
Own(T),
Mut(&'a mut T),
}
Expand description
An enum that provides a mutable reference by either owning or borrowing a struct (Own or Mutable)
Variants§
Trait Implementations§
source§impl<'a, T> BorrowMut<T> for Oom<'a, T>
impl<'a, T> BorrowMut<T> for Oom<'a, T>
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Auto Trait Implementations§
impl<'a, T> Freeze for Oom<'a, T>where
T: Freeze,
impl<'a, T> RefUnwindSafe for Oom<'a, T>where
T: RefUnwindSafe,
impl<'a, T> Send for Oom<'a, T>where
T: Send,
impl<'a, T> Sync for Oom<'a, T>where
T: Sync,
impl<'a, T> Unpin for Oom<'a, T>where
T: Unpin,
impl<'a, T> !UnwindSafe for Oom<'a, T>
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more