[−][src]Struct sync_guid::FastGuid
Invariants:
len <= MAX_FAST_GUID_LEN
.data[0..len]
encodes valid utf8.data[len..].iter().all(|&b| b == b'\0')
Note: None of these are required for memory safety, just correctness.
Fields
len: u8
data: [u8; 14]
Implementations
impl FastGuid
[src]
fn from_slice(bytes: &[u8]) -> Self
[src]
fn as_str(&self) -> &str
[src]
fn len(&self) -> usize
[src]
fn bytes(&self) -> &[u8]
[src]
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for FastGuid
impl Send for FastGuid
impl Sync for FastGuid
impl Unpin for FastGuid
impl UnwindSafe for FastGuid
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,