pub struct CodecPathExtendsPath<const MCL: usize, const MCC: usize, const MPL: usize>(pub Path<MCL, MCC, MPL>);Expand description
A wrapper type around Path whose implementations of the codec_relative traits implement the EncodePathExtendsPath encoding relation.
Tuple Fields§
§0: Path<MCL, MCC, MPL>Trait Implementations§
Source§impl<'arbitrary, const MCL: usize, const MCC: usize, const MPL: usize> Arbitrary<'arbitrary> for CodecPathExtendsPath<MCL, MCC, MPL>
impl<'arbitrary, const MCL: usize, const MCC: usize, const MPL: usize> Arbitrary<'arbitrary> for CodecPathExtendsPath<MCL, MCC, MPL>
Source§fn arbitrary(u: &mut Unstructured<'arbitrary>) -> Result<Self>
fn arbitrary(u: &mut Unstructured<'arbitrary>) -> Result<Self>
Generate an arbitrary value of
Self from the given unstructured data. Read moreSource§fn arbitrary_take_rest(u: Unstructured<'arbitrary>) -> Result<Self>
fn arbitrary_take_rest(u: Unstructured<'arbitrary>) -> Result<Self>
Generate an arbitrary value of
Self from the entirety of the given
unstructured data. Read moreSource§fn size_hint(depth: usize) -> (usize, Option<usize>)
fn size_hint(depth: usize) -> (usize, Option<usize>)
Get a size hint for how many bytes out of an
Unstructured this type
needs to construct itself. Read moreSource§fn try_size_hint(
depth: usize,
) -> Result<(usize, Option<usize>), MaxRecursionReached>
fn try_size_hint( depth: usize, ) -> Result<(usize, Option<usize>), MaxRecursionReached>
Get a size hint for how many bytes out of an
Unstructured this type
needs to construct itself. Read moreSource§impl<const MCL: usize, const MCC: usize, const MPL: usize> Clone for CodecPathExtendsPath<MCL, MCC, MPL>
impl<const MCL: usize, const MCC: usize, const MPL: usize> Clone for CodecPathExtendsPath<MCL, MCC, MPL>
Source§fn clone(&self) -> CodecPathExtendsPath<MCL, MCC, MPL>
fn clone(&self) -> CodecPathExtendsPath<MCL, MCC, MPL>
Returns a duplicate 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<const MCL: usize, const MCC: usize, const MPL: usize> Debug for CodecPathExtendsPath<MCL, MCC, MPL>
impl<const MCL: usize, const MCC: usize, const MPL: usize> Debug for CodecPathExtendsPath<MCL, MCC, MPL>
Source§impl<const MCL: usize, const MCC: usize, const MPL: usize> Default for CodecPathExtendsPath<MCL, MCC, MPL>
impl<const MCL: usize, const MCC: usize, const MPL: usize> Default for CodecPathExtendsPath<MCL, MCC, MPL>
Source§fn default() -> CodecPathExtendsPath<MCL, MCC, MPL>
fn default() -> CodecPathExtendsPath<MCL, MCC, MPL>
Returns the “default value” for a type. Read more
Source§impl<const MCL: usize, const MCC: usize, const MPL: usize> Hash for CodecPathExtendsPath<MCL, MCC, MPL>
impl<const MCL: usize, const MCC: usize, const MPL: usize> Hash for CodecPathExtendsPath<MCL, MCC, MPL>
Source§impl<const MCL: usize, const MCC: usize, const MPL: usize> Ord for CodecPathExtendsPath<MCL, MCC, MPL>
impl<const MCL: usize, const MCC: usize, const MPL: usize> Ord for CodecPathExtendsPath<MCL, MCC, MPL>
Source§fn cmp(&self, other: &CodecPathExtendsPath<MCL, MCC, MPL>) -> Ordering
fn cmp(&self, other: &CodecPathExtendsPath<MCL, MCC, MPL>) -> 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<const MCL: usize, const MCC: usize, const MPL: usize> PartialEq for CodecPathExtendsPath<MCL, MCC, MPL>
impl<const MCL: usize, const MCC: usize, const MPL: usize> PartialEq for CodecPathExtendsPath<MCL, MCC, MPL>
Source§fn eq(&self, other: &CodecPathExtendsPath<MCL, MCC, MPL>) -> bool
fn eq(&self, other: &CodecPathExtendsPath<MCL, MCC, MPL>) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl<const MCL: usize, const MCC: usize, const MPL: usize> PartialOrd for CodecPathExtendsPath<MCL, MCC, MPL>
impl<const MCL: usize, const MCC: usize, const MPL: usize> PartialOrd for CodecPathExtendsPath<MCL, MCC, MPL>
Source§impl<const MCL: usize, const MCC: usize, const MPL: usize> RelativeDecodable<Path<MCL, MCC, MPL>> for CodecPathExtendsPath<MCL, MCC, MPL>
Implements EncodePathExtendsPath.
impl<const MCL: usize, const MCC: usize, const MPL: usize> RelativeDecodable<Path<MCL, MCC, MPL>> for CodecPathExtendsPath<MCL, MCC, MPL>
Implements EncodePathExtendsPath.
Source§type ErrorReason = Blame
type ErrorReason = Blame
Reason why decoding can fail (beyond an unexpected end of input or a producer error).
Source§async fn relative_decode<P>(
rel: &Path<MCL, MCC, MPL>,
producer: &mut P,
) -> Result<Self, DecodeError<P::Final, P::Error, Self::ErrorReason>>
async fn relative_decode<P>( rel: &Path<MCL, MCC, MPL>, producer: &mut P, ) -> Result<Self, DecodeError<P::Final, P::Error, Self::ErrorReason>>
Decodes the symbols produced by the given bulk producer relative to
rel into a Self, or yields an error if the producer does not produce a valid relative encoding. Read moreSource§impl<const MCL: usize, const MCC: usize, const MPL: usize> RelativeDecodableCanonic<Path<MCL, MCC, MPL>> for CodecPathExtendsPath<MCL, MCC, MPL>
Implements path_extends_path.
impl<const MCL: usize, const MCC: usize, const MPL: usize> RelativeDecodableCanonic<Path<MCL, MCC, MPL>> for CodecPathExtendsPath<MCL, MCC, MPL>
Implements path_extends_path.
Source§type ErrorCanonic = Blame
type ErrorCanonic = Blame
The type for reporting that the sequence of symbols to decode was not a valid canonic encoding of any value of type
Self. Read moreSource§async fn relative_decode_canonic<P>(
rel: &Path<MCL, MCC, MPL>,
producer: &mut P,
) -> Result<Self, DecodeError<P::Final, P::Error, Self::ErrorReason>>
async fn relative_decode_canonic<P>( rel: &Path<MCL, MCC, MPL>, producer: &mut P, ) -> Result<Self, DecodeError<P::Final, P::Error, Self::ErrorReason>>
Decodes the symbols produced by the given bulk producer relative to
rel into a Self, and errors if the input encoding is not the canonical one.Source§impl<const MCL: usize, const MCC: usize, const MPL: usize> RelativeEncodable<Path<MCL, MCC, MPL>> for CodecPathExtendsPath<MCL, MCC, MPL>
Implements path_extends_path.
impl<const MCL: usize, const MCC: usize, const MPL: usize> RelativeEncodable<Path<MCL, MCC, MPL>> for CodecPathExtendsPath<MCL, MCC, MPL>
Implements path_extends_path.
Source§fn can_be_encoded_relative_to(&self, rel: &Path<MCL, MCC, MPL>) -> bool
fn can_be_encoded_relative_to(&self, rel: &Path<MCL, MCC, MPL>) -> bool
Returns true iff rel is a prefix of self.
Source§impl<const MCL: usize, const MCC: usize, const MPL: usize> RelativeEncodableKnownLength<Path<MCL, MCC, MPL>> for CodecPathExtendsPath<MCL, MCC, MPL>
Implements path_extends_path.
impl<const MCL: usize, const MCC: usize, const MPL: usize> RelativeEncodableKnownLength<Path<MCL, MCC, MPL>> for CodecPathExtendsPath<MCL, MCC, MPL>
Implements path_extends_path.
Source§fn len_of_relative_encoding(&self, rel: &Path<MCL, MCC, MPL>) -> usize
fn len_of_relative_encoding(&self, rel: &Path<MCL, MCC, MPL>) -> usize
Computes the number of symbols of the encoding of
self, relative to rel. A successful call to relative_encode must feed exactly that many symbols into the bulk consumer. Read moreimpl<const MCL: usize, const MCC: usize, const MPL: usize> Eq for CodecPathExtendsPath<MCL, MCC, MPL>
impl<const MCL: usize, const MCC: usize, const MPL: usize> StructuralPartialEq for CodecPathExtendsPath<MCL, MCC, MPL>
Auto Trait Implementations§
impl<const MCL: usize, const MCC: usize, const MPL: usize> !Freeze for CodecPathExtendsPath<MCL, MCC, MPL>
impl<const MCL: usize, const MCC: usize, const MPL: usize> RefUnwindSafe for CodecPathExtendsPath<MCL, MCC, MPL>
impl<const MCL: usize, const MCC: usize, const MPL: usize> Send for CodecPathExtendsPath<MCL, MCC, MPL>
impl<const MCL: usize, const MCC: usize, const MPL: usize> Sync for CodecPathExtendsPath<MCL, MCC, MPL>
impl<const MCL: usize, const MCC: usize, const MPL: usize> Unpin for CodecPathExtendsPath<MCL, MCC, MPL>
impl<const MCL: usize, const MCC: usize, const MPL: usize> UnwindSafe for CodecPathExtendsPath<MCL, MCC, MPL>
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