Struct ark_api::ml::FixedBufferString
source · [−]Expand description
A variable length string that can be up to N bytes long.
Fields
length: u32
Length of the string in bytes
bytes: [u8; N]
Contents of the string.
Only the first length
bytes are part of the string.
The remaining bytes are undefined.
Trait Implementations
sourceimpl<const N: usize> Clone for FixedBufferString<N>
impl<const N: usize> Clone for FixedBufferString<N>
sourcefn clone(&self) -> FixedBufferString<N>
fn clone(&self) -> FixedBufferString<N>
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl<const N: usize> Debug for FixedBufferString<N>
impl<const N: usize> Debug for FixedBufferString<N>
sourceimpl<const N: usize> Zeroable for FixedBufferString<N>
impl<const N: usize> Zeroable for FixedBufferString<N>
impl<const N: usize> Copy for FixedBufferString<N>
impl<const N: usize> Pod for FixedBufferString<N>
Auto Trait Implementations
impl<const N: usize> RefUnwindSafe for FixedBufferString<N>
impl<const N: usize> Send for FixedBufferString<N>
impl<const N: usize> Sync for FixedBufferString<N>
impl<const N: usize> Unpin for FixedBufferString<N>
impl<const N: usize> UnwindSafe for FixedBufferString<N>
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> CheckedBitPattern for T where
T: AnyBitPattern,
impl<T> CheckedBitPattern for T where
T: AnyBitPattern,
type Bits = T
type Bits = T
Self
must have the same layout as the specified Bits
except for
the possible invalid bit patterns being checked during
is_valid_bit_pattern
. Read more
sourcefn is_valid_bit_pattern(_bits: &T) -> bool
fn is_valid_bit_pattern(_bits: &T) -> bool
If this function returns true, then it must be valid to reinterpret bits
as &Self
. Read more