#[repr(transparent)]pub struct FixedCStrBuffer<const L: usize>(pub [u8; L]);Tuple Fields§
§0: [u8; L]Implementations§
Source§impl<const L: usize> FixedCStrBuffer<L>
impl<const L: usize> FixedCStrBuffer<L>
pub const fn as_cstr(&self) -> Result<&CStr, FromBytesUntilNulError>
Trait Implementations§
Source§impl<const L: usize> Clone for FixedCStrBuffer<L>
impl<const L: usize> Clone for FixedCStrBuffer<L>
Source§fn clone(&self) -> FixedCStrBuffer<L>
fn clone(&self) -> FixedCStrBuffer<L>
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl<const L: usize> Debug for FixedCStrBuffer<L>
impl<const L: usize> Debug for FixedCStrBuffer<L>
Source§impl<const L: usize> Hash for FixedCStrBuffer<L>
impl<const L: usize> Hash for FixedCStrBuffer<L>
Source§impl<const L: usize> Ord for FixedCStrBuffer<L>
impl<const L: usize> Ord for FixedCStrBuffer<L>
Source§fn cmp(&self, other: &FixedCStrBuffer<L>) -> Ordering
fn cmp(&self, other: &FixedCStrBuffer<L>) -> Ordering
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl<const L: usize> PartialEq for FixedCStrBuffer<L>
impl<const L: usize> PartialEq for FixedCStrBuffer<L>
Source§fn eq(&self, other: &FixedCStrBuffer<L>) -> bool
fn eq(&self, other: &FixedCStrBuffer<L>) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl<const L: usize> PartialOrd for FixedCStrBuffer<L>
impl<const L: usize> PartialOrd for FixedCStrBuffer<L>
impl<const L: usize> Copy for FixedCStrBuffer<L>
impl<const L: usize> Eq for FixedCStrBuffer<L>
impl<const L: usize> StructuralPartialEq for FixedCStrBuffer<L>
Auto Trait Implementations§
impl<const L: usize> Freeze for FixedCStrBuffer<L>
impl<const L: usize> RefUnwindSafe for FixedCStrBuffer<L>
impl<const L: usize> Send for FixedCStrBuffer<L>
impl<const L: usize> Sync for FixedCStrBuffer<L>
impl<const L: usize> Unpin for FixedCStrBuffer<L>
impl<const L: usize> UnsafeUnpin for FixedCStrBuffer<L>
impl<const L: usize> UnwindSafe for FixedCStrBuffer<L>
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