Struct option

#[repr(C)]
pub struct option { pub name: *const c_char, pub has_arg: c_int, pub flag: *mut c_int, pub val: c_int }

Fields

name: *const c_char
has_arg: c_int
flag: *mut c_int
val: c_int

Trait Implementations

impl Clone for option

fn clone(&self) -> Self

impl Copy for option

impl Debug for option

fn fmt(&self, f: &mut Formatter<'_>) -> Result

impl Eq for option

impl Hash for option

fn hash<__H: Hasher>(&self, state: &mut __H)

impl PartialEq for option

fn eq(&self, other: &Self) -> bool

impl StructuralPartialEq for option

Auto Trait Implementations

impl !Send for option

impl !Sync for option

impl Freeze for option

impl RefUnwindSafe for option

impl Unpin for option

impl UnsafeUnpin for option

impl UnwindSafe for option

Blanket Implementations

impl<T> Any for option where T: 'static + ?Sized,

fn type_id(&self) -> TypeId

impl<T> Borrow<T> for option where T: ?Sized,

fn borrow(&self) -> &T

impl<T> BorrowMut<T> for option where T: ?Sized,

fn borrow_mut(&mut self) -> &mut T

impl<T> CloneToUninit for option where T: Clone,

unsafe fn clone_to_uninit(&self, dest: *mut u8)

impl<T> From<T> for option

fn from(t: T) -> T

Returns the argument unchanged.

impl<T, U> Into<U> for option where U: From<T>,

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of [From]<T> for U chooses to do.

impl<T, U> TryFrom<U> for option where U: Into<T>,

type Error = never;
fn try_from(value: U) -> Result<T, never>

impl<T, U> TryInto<U> for option where U: TryFrom<T>,

type Error = <U as TryFrom<T>>::Error;
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>