pub struct CItemConst<'a, V> { /* private fields */ }Implementations§
Source§impl<'a, V> CItemConst<'a, V>
impl<'a, V> CItemConst<'a, V>
pub fn new<T>(item: V, _src: &'a T) -> CItemConst<'a, V>
pub fn from_phantom<T>(item: V, _src: PhantomData<&'a T>) -> CItemConst<'a, V>
Trait Implementations§
Source§impl<'a, T> Deref for CItemConst<'a, T>
impl<'a, T> Deref for CItemConst<'a, T>
impl<'a, V> Send for CItemConst<'a, V>
impl<'a, V> Sync for CItemConst<'a, V>
Auto Trait Implementations§
impl<'a, V> Freeze for CItemConst<'a, V>where
V: Freeze,
impl<'a, V> RefUnwindSafe for CItemConst<'a, V>where
V: RefUnwindSafe,
impl<'a, V> Unpin for CItemConst<'a, V>where
V: Unpin,
impl<'a, V> UnwindSafe for CItemConst<'a, V>where
V: 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
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more