pub struct ProjectionGroupPrefix { /* private fields */ }Expand description
A transient canonical prefix for one published projection generation.
Implementations§
Source§impl ProjectionGroupPrefix
impl ProjectionGroupPrefix
Sourcepub fn from_bytes(bytes: Vec<u8>) -> Result<Self, ProjectionKeyError>
pub fn from_bytes(bytes: Vec<u8>) -> Result<Self, ProjectionKeyError>
Parses a syntactically canonical zero-or-more-component prefix.
Exact leading-component validation still requires the matching checked projection group schema.
Sourcepub const fn identity(&self) -> &ProjectionIdentity
pub const fn identity(&self) -> &ProjectionIdentity
Returns the projection identity encoded by the prefix.
Sourcepub const fn generation(&self) -> ProjectionGeneration
pub const fn generation(&self) -> ProjectionGeneration
Returns the generation encoded by the prefix.
Sourcepub fn components(&self) -> &[CanonicalValue]
pub fn components(&self) -> &[CanonicalValue]
Returns the syntactically validated complete leading components.
Sourcepub fn exclusive_successor(&self) -> Vec<u8> ⓘ
pub fn exclusive_successor(&self) -> Vec<u8> ⓘ
Returns the lexicographic exclusive successor for a prefix range.
A valid prefix always begins with 0x47, so a successor always exists.
Trait Implementations§
Source§impl Clone for ProjectionGroupPrefix
impl Clone for ProjectionGroupPrefix
Source§impl Debug for ProjectionGroupPrefix
impl Debug for ProjectionGroupPrefix
impl Eq for ProjectionGroupPrefix
Source§impl Hash for ProjectionGroupPrefix
impl Hash for ProjectionGroupPrefix
Source§impl Ord for ProjectionGroupPrefix
impl Ord for ProjectionGroupPrefix
1.21.0 (const: unstable) · 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
1.21.0 (const: unstable) · Source§fn min(self, other: Self) -> Selfwhere
Self: Sized,
fn min(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the minimum of two values. Read more
Source§impl PartialEq for ProjectionGroupPrefix
impl PartialEq for ProjectionGroupPrefix
Source§impl PartialOrd for ProjectionGroupPrefix
impl PartialOrd for ProjectionGroupPrefix
Auto Trait Implementations§
impl Freeze for ProjectionGroupPrefix
impl RefUnwindSafe for ProjectionGroupPrefix
impl Send for ProjectionGroupPrefix
impl Sync for ProjectionGroupPrefix
impl Unpin for ProjectionGroupPrefix
impl UnsafeUnpin for ProjectionGroupPrefix
impl UnwindSafe for ProjectionGroupPrefix
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