pub struct ProjectionProviderStateIdentityV1 { /* private fields */ }Expand description
Immutable provider state schema identity, distinct from a live generation.
Implementations§
Source§impl ProjectionProviderStateIdentityV1
impl ProjectionProviderStateIdentityV1
Sourcepub const fn new(layout_version: NonZeroU32, schema_hash: [u8; 32]) -> Self
pub const fn new(layout_version: NonZeroU32, schema_hash: [u8; 32]) -> Self
Constructs an already-validated provider state identity.
Sourcepub const fn layout_version(self) -> NonZeroU32
pub const fn layout_version(self) -> NonZeroU32
Returns the never-zero layout version.
Sourcepub const fn schema_hash(self) -> [u8; 32]
pub const fn schema_hash(self) -> [u8; 32]
Returns the provider-state schema digest.
Trait Implementations§
impl Copy for ProjectionProviderStateIdentityV1
impl Eq for ProjectionProviderStateIdentityV1
Source§impl Ord for ProjectionProviderStateIdentityV1
impl Ord for ProjectionProviderStateIdentityV1
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 PartialOrd for ProjectionProviderStateIdentityV1
impl PartialOrd for ProjectionProviderStateIdentityV1
impl StructuralPartialEq for ProjectionProviderStateIdentityV1
Auto Trait Implementations§
impl Freeze for ProjectionProviderStateIdentityV1
impl RefUnwindSafe for ProjectionProviderStateIdentityV1
impl Send for ProjectionProviderStateIdentityV1
impl Sync for ProjectionProviderStateIdentityV1
impl Unpin for ProjectionProviderStateIdentityV1
impl UnsafeUnpin for ProjectionProviderStateIdentityV1
impl UnwindSafe for ProjectionProviderStateIdentityV1
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