pub struct Id<T = ArrayString<[u8; 6]>>(pub T);
Expand description
The database entry id newtype, is a ArrayString
by default
Tuple Fields§
§0: T
Trait Implementations§
Source§impl<T> AddAssign for Id<T>where
T: AddAssign,
impl<T> AddAssign for Id<T>where
T: AddAssign,
Source§fn add_assign(&mut self, other: Self)
fn add_assign(&mut self, other: Self)
Performs the
+=
operation. Read moreSource§impl<T> BitAndAssign for Id<T>where
T: BitAndAssign + BitAnd<Output = T>,
impl<T> BitAndAssign for Id<T>where
T: BitAndAssign + BitAnd<Output = T>,
Source§fn bitand_assign(&mut self, other: Self)
fn bitand_assign(&mut self, other: Self)
Performs the
&=
operation. Read moreSource§impl<T> BitOrAssign for Id<T>where
T: BitOrAssign + BitOr<Output = T>,
impl<T> BitOrAssign for Id<T>where
T: BitOrAssign + BitOr<Output = T>,
Source§fn bitor_assign(&mut self, other: Self)
fn bitor_assign(&mut self, other: Self)
Performs the
|=
operation. Read moreSource§impl<T> BitXorAssign for Id<T>where
T: BitXorAssign + BitXor<Output = T>,
impl<T> BitXorAssign for Id<T>where
T: BitXorAssign + BitXor<Output = T>,
Source§fn bitxor_assign(&mut self, other: Self)
fn bitxor_assign(&mut self, other: Self)
Performs the
^=
operation. Read moreSource§impl<'de, T> Deserialize<'de> for Id<T>where
T: Deserialize<'de>,
impl<'de, T> Deserialize<'de> for Id<T>where
T: Deserialize<'de>,
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl<T> DivAssign for Id<T>where
T: DivAssign,
impl<T> DivAssign for Id<T>where
T: DivAssign,
Source§fn div_assign(&mut self, other: Self)
fn div_assign(&mut self, other: Self)
Performs the
/=
operation. Read moreSource§impl<T> MulAssign for Id<T>where
T: MulAssign,
impl<T> MulAssign for Id<T>where
T: MulAssign,
Source§fn mul_assign(&mut self, other: Self)
fn mul_assign(&mut self, other: Self)
Performs the
*=
operation. Read moreSource§impl<T> Ord for Id<T>where
T: Ord,
impl<T> Ord for Id<T>where
T: Ord,
Source§impl<T> PartialOrd for Id<T>where
T: PartialOrd,
impl<T> PartialOrd for Id<T>where
T: PartialOrd,
Source§impl<T> RemAssign for Id<T>where
T: RemAssign,
impl<T> RemAssign for Id<T>where
T: RemAssign,
Source§fn rem_assign(&mut self, other: Self)
fn rem_assign(&mut self, other: Self)
Performs the
%=
operation. Read moreSource§impl<T> ShlAssign for Id<T>where
T: ShlAssign,
impl<T> ShlAssign for Id<T>where
T: ShlAssign,
Source§fn shl_assign(&mut self, other: Self)
fn shl_assign(&mut self, other: Self)
Performs the
<<=
operation. Read moreSource§impl<T> ShrAssign for Id<T>where
T: ShrAssign,
impl<T> ShrAssign for Id<T>where
T: ShrAssign,
Source§fn shr_assign(&mut self, other: Self)
fn shr_assign(&mut self, other: Self)
Performs the
>>=
operation. Read moreSource§impl<T> SubAssign for Id<T>where
T: SubAssign,
impl<T> SubAssign for Id<T>where
T: SubAssign,
Source§fn sub_assign(&mut self, other: Self)
fn sub_assign(&mut self, other: Self)
Performs the
-=
operation. Read moreimpl<T> Copy for Id<T>where
T: Copy,
impl<T> Eq for Id<T>where
T: Eq,
Auto Trait Implementations§
impl<T> Freeze for Id<T>where
T: Freeze,
impl<T> RefUnwindSafe for Id<T>where
T: RefUnwindSafe,
impl<T> Send for Id<T>where
T: Send,
impl<T> Sync for Id<T>where
T: Sync,
impl<T> Unpin for Id<T>where
T: Unpin,
impl<T> UnwindSafe for Id<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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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 moreSource§impl<T> IntoOption for T
impl<T> IntoOption for T
Source§fn some_if(self, predicate: bool) -> Option<Self>
fn some_if(self, predicate: bool) -> Option<Self>
Results
Some(self)
if the predicate returns true
, or None
otherwise.Source§fn with_some_if<F>(self, predicate: F) -> Option<Self>
fn with_some_if<F>(self, predicate: F) -> Option<Self>
Results
Some(self)
if the predicate returns true
, or None
otherwise.Source§impl<T> IntoResult for T
impl<T> IntoResult for T
Source§fn ok_if<E>(self, predicate: bool, err: E) -> Result<Self, E>
fn ok_if<E>(self, predicate: bool, err: E) -> Result<Self, E>
Results
Ok(self)
if the predicate returns true
, or Err(err)
otherwise.Source§fn with_ok_if<F, E>(self, predicate: F, err: E) -> Result<Self, E>
fn with_ok_if<F, E>(self, predicate: F, err: E) -> Result<Self, E>
Results
Ok(self)
if the predicate returns true
, or Err(err)
otherwise.Source§impl<T> Peep for T
impl<T> Peep for T
Source§impl<T> Wrap for T
impl<T> Wrap for T
Source§fn wrap_ref<F>(self, wrap: F) -> Selfwhere
F: FnOnce(&Self),
fn wrap_ref<F>(self, wrap: F) -> Selfwhere
F: FnOnce(&Self),
Turns a self reference function call into an ‘inline’/‘builder’ call. Read more