pub struct IndexName {
pub len: u16,
pub bytes: [u8; 324],
}Expand description
IndexName
Fields§
§len: u16§bytes: [u8; 324]Implementations§
Source§impl IndexName
impl IndexName
pub const STORED_SIZE: u32
pub const STORED_SIZE_USIZE: usize
Sourcepub fn try_from_parts(
entity: &EntityName,
fields: &[&str],
) -> Result<Self, IndexNameError>
pub fn try_from_parts( entity: &EntityName, fields: &[&str], ) -> Result<Self, IndexNameError>
Build an index name from runtime input, returning a typed error on failure.
pub fn as_bytes(&self) -> &[u8] ⓘ
pub fn as_str(&self) -> &str
pub fn to_bytes(self) -> [u8; 326]
pub fn from_bytes(bytes: &[u8]) -> Result<Self, &'static str>
pub fn try_from_bytes(bytes: &[u8]) -> Result<Self, &'static str>
pub const fn max_storable() -> Self
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