pub struct EntityName {
pub len: u8,
pub bytes: [u8; 64],
}Expand description
EntityName
Fields§
§len: u8§bytes: [u8; 64]Implementations§
Source§impl EntityName
impl EntityName
pub const STORED_SIZE: u32
pub const STORED_SIZE_USIZE: usize
pub const fn from_static(name: &'static str) -> Self
pub const fn len(&self) -> usize
pub const fn is_empty(&self) -> bool
pub fn as_bytes(&self) -> &[u8] ⓘ
pub fn as_str(&self) -> &str
pub fn to_bytes(self) -> [u8; 65]
pub fn from_bytes(bytes: &[u8]) -> Result<Self, &'static str>
pub const fn max_storable() -> Self
Trait Implementations§
Source§impl Clone for EntityName
impl Clone for EntityName
Source§fn clone(&self) -> EntityName
fn clone(&self) -> EntityName
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 Debug for EntityName
impl Debug for EntityName
Source§impl Display for EntityName
impl Display for EntityName
Source§impl Hash for EntityName
impl Hash for EntityName
Source§impl Ord for EntityName
impl Ord for EntityName
Source§impl PartialEq for EntityName
impl PartialEq for EntityName
Source§impl PartialOrd for EntityName
impl PartialOrd for EntityName
impl Copy for EntityName
impl Eq for EntityName
impl StructuralPartialEq for EntityName
Auto Trait Implementations§
impl Freeze for EntityName
impl RefUnwindSafe for EntityName
impl Send for EntityName
impl Sync for EntityName
impl Unpin for EntityName
impl UnwindSafe for EntityName
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