pub struct IndexName { /* private fields */ }Expand description
IndexName
Implementations§
Source§impl IndexName
impl IndexName
Sourcepub const STORED_SIZE_BYTES: u64
pub const STORED_SIZE_BYTES: u64
Fixed on-disk size in bytes (stable, protocol-level).
Sourcepub const STORED_SIZE_USIZE: usize
pub const STORED_SIZE_USIZE: usize
Fixed in-memory size (for buffers and arrays).
Sourcepub fn try_from_parts(
entity: &EntityName,
fields: &[&str],
) -> Result<Self, IndexNameError>
pub fn try_from_parts( entity: &EntityName, fields: &[&str], ) -> Result<Self, IndexNameError>
Validate and construct one index identity from an entity + field list.
Sourcepub fn as_bytes(&self) -> &[u8] ⓘ
pub fn as_bytes(&self) -> &[u8] ⓘ
Borrow raw index-identity bytes excluding trailing fixed-buffer padding.
Sourcepub fn to_bytes(self) -> [u8; 326]
pub fn to_bytes(self) -> [u8; 326]
Encode this identity into its fixed-size persisted representation.
Sourcepub fn from_bytes(bytes: &[u8]) -> Result<Self, IdentityDecodeError>
pub fn from_bytes(bytes: &[u8]) -> Result<Self, IdentityDecodeError>
Decode one fixed-size persisted index identity payload.
Sourcepub const fn max_storable() -> Self
pub const fn max_storable() -> Self
Return a maximal sortable index identity sentinel value.
Trait Implementations§
Source§impl Ord for IndexName
impl Ord for IndexName
Source§impl PartialOrd for IndexName
impl PartialOrd for IndexName
impl Copy for IndexName
impl Eq for IndexName
impl StructuralPartialEq for IndexName
Auto Trait Implementations§
impl Freeze for IndexName
impl RefUnwindSafe for IndexName
impl Send for IndexName
impl Sync for IndexName
impl Unpin for IndexName
impl UnsafeUnpin for IndexName
impl UnwindSafe for IndexName
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