Enum lair_keystore::dependencies::hc_seed_bundle::dependencies::rmp_serde::decode::Reference
source · pub enum Reference<'b, 'c, T>where
T: 'static + ?Sized,{
Borrowed(&'b T),
Copied(&'c T),
}
Expand description
Unification of both borrowed and non-borrowed reference types.
Variants§
Borrowed(&'b T)
The reference is pointed at data that was borrowed.
Copied(&'c T)
The reference is pointed at data that was copied.
Trait Implementations§
source§impl<'b, 'c, T> PartialEq for Reference<'b, 'c, T>
impl<'b, 'c, T> PartialEq for Reference<'b, 'c, T>
impl<'b, 'c, T> Copy for Reference<'b, 'c, T>
impl<'b, 'c, T> StructuralPartialEq for Reference<'b, 'c, T>where
T: 'static + ?Sized,
Auto Trait Implementations§
impl<'b, 'c, T> Freeze for Reference<'b, 'c, T>where
T: ?Sized,
impl<'b, 'c, T> RefUnwindSafe for Reference<'b, 'c, T>where
T: RefUnwindSafe + ?Sized,
impl<'b, 'c, T> Send for Reference<'b, 'c, T>
impl<'b, 'c, T> Sync for Reference<'b, 'c, T>
impl<'b, 'c, T> Unpin for Reference<'b, 'c, T>where
T: ?Sized,
impl<'b, 'c, T> UnwindSafe for Reference<'b, 'c, T>where
T: RefUnwindSafe + ?Sized,
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> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
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