pub struct Const { /* private fields */ }
Implementations§
Source§impl Const
impl Const
pub unsafe fn new(ptr: *const u8, len: usize) -> Self
pub unsafe fn cast_to_ref<'a, T>(self) -> &'a T
pub unsafe fn from_slice(slice: &[u8]) -> Self
pub fn slice<'a>(self) -> &'a [u8] ⓘ
pub unsafe fn array<'a, const L: usize>(self) -> &'a [u8; L]
pub fn copy_to(self, dst: Mut)
Trait Implementations§
impl Copy for Const
Auto Trait Implementations§
impl Freeze for Const
impl RefUnwindSafe for Const
impl !Send for Const
impl !Sync for Const
impl Unpin for Const
impl UnwindSafe for Const
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