Struct indexer::storable::StorablePrincipal
source · pub struct StorablePrincipal(pub Principal);
Tuple Fields§
§0: Principal
Trait Implementations§
source§impl Clone for StorablePrincipal
impl Clone for StorablePrincipal
source§fn clone(&self) -> StorablePrincipal
fn clone(&self) -> StorablePrincipal
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Ord for StorablePrincipal
impl Ord for StorablePrincipal
source§fn cmp(&self, other: &StorablePrincipal) -> Ordering
fn cmp(&self, other: &StorablePrincipal) -> Ordering
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
source§impl PartialEq for StorablePrincipal
impl PartialEq for StorablePrincipal
source§fn eq(&self, other: &StorablePrincipal) -> bool
fn eq(&self, other: &StorablePrincipal) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd for StorablePrincipal
impl PartialOrd for StorablePrincipal
source§fn partial_cmp(&self, other: &StorablePrincipal) -> Option<Ordering>
fn partial_cmp(&self, other: &StorablePrincipal) -> Option<Ordering>
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 moresource§impl Storable for StorablePrincipal
impl Storable for StorablePrincipal
source§fn from_bytes(bytes: Cow<'_, [u8]>) -> Self
fn from_bytes(bytes: Cow<'_, [u8]>) -> Self
Converts bytes into an element.
§fn to_bytes_checked(&self) -> Cow<'_, [u8]>
fn to_bytes_checked(&self) -> Cow<'_, [u8]>
Like
to_bytes
, but includes additional checks to ensure the element’s serialized bytes
are within the element’s bounds.impl Eq for StorablePrincipal
impl StructuralPartialEq for StorablePrincipal
Auto Trait Implementations§
impl RefUnwindSafe for StorablePrincipal
impl Send for StorablePrincipal
impl Sync for StorablePrincipal
impl Unpin for StorablePrincipal
impl UnwindSafe for StorablePrincipal
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