Struct linear_type::Linear
source · pub struct Linear<T>(/* private fields */);Expand description
A Cell like struct that wraps a T and can be derefernced to &T. This cell must never be
dropped. For destruction of the inner value one has to call .into_inner().
Implementations§
Trait Implementations§
source§impl<T: Ord> Ord for Linear<T>
impl<T: Ord> Ord for Linear<T>
source§impl<T: PartialEq> PartialEq<Linear<T>> for Linear<T>
impl<T: PartialEq> PartialEq<Linear<T>> for Linear<T>
source§impl<T: PartialOrd> PartialOrd<Linear<T>> for Linear<T>
impl<T: PartialOrd> PartialOrd<Linear<T>> for Linear<T>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self and other) and is used by the <=
operator. Read moreimpl<T: Eq> Eq for Linear<T>
impl<T> StructuralEq for Linear<T>
impl<T> StructuralPartialEq for Linear<T>
Auto Trait Implementations§
impl<T> RefUnwindSafe for Linear<T>where T: RefUnwindSafe,
impl<T> Send for Linear<T>where T: Send,
impl<T> Sync for Linear<T>where T: Sync,
impl<T> Unpin for Linear<T>where T: Unpin,
impl<T> UnwindSafe for Linear<T>where T: UnwindSafe,
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