#[repr(C)]pub struct ConstantArray<const N: usize> { /* private fields */ }
Expand description
A zero-terminated parameter constant array.
Implementations
sourceimpl<const N: usize> ConstantArray<N>
impl<const N: usize> ConstantArray<N>
sourcepub const fn new(consts: [(&'static CStr, u32); N]) -> Self
pub const fn new(consts: [(&'static CStr, u32); N]) -> Self
Creates a new constant array.
Users are encouraged to use the define_fs_params
macro to define the
super::Context::PARAMS
constant.
sourcepub const fn as_table(&self) -> ConstantTable<'_>
pub const fn as_table(&self) -> ConstantTable<'_>
Returns a ConstantTable
backed by self
.
This is used to essentially erase the array size.
Auto Trait Implementations
impl<const N: usize> RefUnwindSafe for ConstantArray<N>
impl<const N: usize> !Send for ConstantArray<N>
impl<const N: usize> !Sync for ConstantArray<N>
impl<const N: usize> Unpin for ConstantArray<N>
impl<const N: usize> UnwindSafe for ConstantArray<N>
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
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