pub struct Relation<'data> { /* private fields */ }
Expand description
Represent a a single “relation” in a plural rule
Trait Implementations§
Source§impl<'data> EncodeAsVarULE<RelationULE> for &Relation<'data>
impl<'data> EncodeAsVarULE<RelationULE> for &Relation<'data>
Source§fn encode_var_ule_as_slices<R>(&self, cb: impl FnOnce(&[&[u8]]) -> R) -> R
fn encode_var_ule_as_slices<R>(&self, cb: impl FnOnce(&[&[u8]]) -> R) -> R
Calls
cb
with a piecewise list of byte slices that when concatenated
produce the memory pattern of the corresponding instance of T
. Read moreSource§fn encode_var_ule_len(&self) -> usize
fn encode_var_ule_len(&self) -> usize
Return the length, in bytes, of the corresponding
VarULE
typeSource§fn encode_var_ule_write(&self, dst: &mut [u8])
fn encode_var_ule_write(&self, dst: &mut [u8])
Write the corresponding
VarULE
type to the dst
buffer. dst
should
be the size of Self::encode_var_ule_len()
Source§impl<'data> EncodeAsVarULE<RelationULE> for Relation<'data>
impl<'data> EncodeAsVarULE<RelationULE> for Relation<'data>
Source§fn encode_var_ule_as_slices<R>(&self, cb: impl FnOnce(&[&[u8]]) -> R) -> R
fn encode_var_ule_as_slices<R>(&self, cb: impl FnOnce(&[&[u8]]) -> R) -> R
Calls
cb
with a piecewise list of byte slices that when concatenated
produce the memory pattern of the corresponding instance of T
. Read moreSource§fn encode_var_ule_len(&self) -> usize
fn encode_var_ule_len(&self) -> usize
Return the length, in bytes, of the corresponding
VarULE
typeSource§fn encode_var_ule_write(&self, dst: &mut [u8])
fn encode_var_ule_write(&self, dst: &mut [u8])
Write the corresponding
VarULE
type to the dst
buffer. dst
should
be the size of Self::encode_var_ule_len()
Source§impl<'data> From<&'data RelationULE> for Relation<'data>
impl<'data> From<&'data RelationULE> for Relation<'data>
Source§fn from(other: &'data RelationULE) -> Relation<'data>
fn from(other: &'data RelationULE) -> Relation<'data>
Converts to this type from the input type.
Source§impl<'data> Ord for Relation<'data>
impl<'data> Ord for Relation<'data>
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<'data> PartialOrd for Relation<'data>
impl<'data> PartialOrd for Relation<'data>
Source§impl<'data> ZeroFrom<'data, RelationULE> for Relation<'data>
impl<'data> ZeroFrom<'data, RelationULE> for Relation<'data>
Source§fn zero_from(other: &'data RelationULE) -> Relation<'data>
fn zero_from(other: &'data RelationULE) -> Relation<'data>
Clone the other
C
into a struct that may retain references into C
.impl<'data> Eq for Relation<'data>
impl<'data> StructuralPartialEq for Relation<'data>
Auto Trait Implementations§
impl<'data> Freeze for Relation<'data>
impl<'data> RefUnwindSafe for Relation<'data>
impl<'data> Send for Relation<'data>
impl<'data> Sync for Relation<'data>
impl<'data> Unpin for Relation<'data>
impl<'data> UnwindSafe for Relation<'data>
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 more