#[repr(C)]pub struct AuxOptions<'str, const N: usize> {
pub options: [*const c_char; N],
/* private fields */
}Expand description
List of string options to be used with
Thread::check_option.
The generic const N: usize specifies the static number of entries;
'str indicates the lifetime for every entry, which are C strings.
Fields§
§options: [*const c_char; N]Implementations§
Source§impl<'str, const N: usize> AuxOptions<'str, N>
impl<'str, const N: usize> AuxOptions<'str, N>
Sourcepub const fn new(items: [&'str CStr; N]) -> Self
pub const fn new(items: [&'str CStr; N]) -> Self
Construct an instance of AuxOptions with a static list of options.
Sourcepub const fn as_ptr(&self) -> *const *const c_char
pub const fn as_ptr(&self) -> *const *const c_char
Return a pointer to this structure to be used with C.
Sourcepub const fn as_str_ptr_slice(&self) -> &[*const c_char]
pub const fn as_str_ptr_slice(&self) -> &[*const c_char]
Return a slice of *const c_chars that represent the string
options contained within the structure.
Trait Implementations§
Source§impl<'str, const N: usize> Clone for AuxOptions<'str, N>
impl<'str, const N: usize> Clone for AuxOptions<'str, N>
Source§fn clone(&self) -> AuxOptions<'str, N>
fn clone(&self) -> AuxOptions<'str, N>
Returns a duplicate 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<'str, const N: usize> Debug for AuxOptions<'str, N>
impl<'str, const N: usize> Debug for AuxOptions<'str, N>
Source§impl<'str, const N: usize> Ord for AuxOptions<'str, N>
impl<'str, const N: usize> Ord for AuxOptions<'str, N>
Source§fn cmp(&self, other: &AuxOptions<'str, N>) -> Ordering
fn cmp(&self, other: &AuxOptions<'str, N>) -> Ordering
1.21.0 · 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<'str, const N: usize> PartialEq for AuxOptions<'str, N>
impl<'str, const N: usize> PartialEq for AuxOptions<'str, N>
Source§impl<'str, const N: usize> PartialOrd for AuxOptions<'str, N>
impl<'str, const N: usize> PartialOrd for AuxOptions<'str, N>
impl<'str, const N: usize> Copy for AuxOptions<'str, N>
impl<'str, const N: usize> Eq for AuxOptions<'str, N>
impl<'str, const N: usize> StructuralPartialEq for AuxOptions<'str, N>
Auto Trait Implementations§
impl<'str, const N: usize> Freeze for AuxOptions<'str, N>
impl<'str, const N: usize> RefUnwindSafe for AuxOptions<'str, N>
impl<'str, const N: usize> !Send for AuxOptions<'str, N>
impl<'str, const N: usize> !Sync for AuxOptions<'str, N>
impl<'str, const N: usize> Unpin for AuxOptions<'str, N>
impl<'str, const N: usize> UnwindSafe for AuxOptions<'str, 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