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
Own(T)
An owned reference to T
Mut(&'a mut T)
A mutable reference to T
Trait Implementations
sourceimpl<'a, T> BorrowMut<T> for Oom<'a, T>
impl<'a, T> BorrowMut<T> for Oom<'a, T>
sourcefn 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> 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
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more