Struct ark_api::ml::FixedBufferString
source · pub struct FixedBufferString<const N: usize> {
pub length: u32,
pub bytes: [u8; N],
}Expand description
A variable length string that can be up to N bytes long.
Fields§
§length: u32Length 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§
source§impl<const N: usize> Clone for FixedBufferString<N>
impl<const N: usize> Clone for FixedBufferString<N>
source§fn clone(&self) -> FixedBufferString<N>
fn clone(&self) -> FixedBufferString<N>
Returns a copy 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<const N: usize> Debug for FixedBufferString<N>
impl<const N: usize> Debug for FixedBufferString<N>
source§impl<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§
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
source§impl<T> CheckedBitPattern for Twhere
T: AnyBitPattern,
impl<T> CheckedBitPattern for Twhere 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.source§fn 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.