#[repr(C)]pub struct apr_getopt_t {
pub cont: *mut apr_pool_t,
pub errfn: apr_getopt_err_fn_t,
pub errarg: *mut c_void,
pub ind: c_int,
pub opt: c_int,
pub reset: c_int,
pub argc: c_int,
pub argv: *mut *const c_char,
pub place: *const c_char,
pub interleave: c_int,
pub skip_start: c_int,
pub skip_end: c_int,
}Expand description
Structure to store command line argument information.
Fields§
§cont: *mut apr_pool_tcontext for processing
errfn: apr_getopt_err_fn_tfunction to print error message (NULL == no messages)
errarg: *mut c_voiduser defined first arg to pass to error message
ind: c_intindex into parent argv vector
opt: c_intcharacter checked for validity
reset: c_intreset getopt
argc: c_intcount of arguments
argv: *mut *const c_chararray of pointers to arguments
place: *const c_charargument associated with option
interleave: c_intset to nonzero to support interleaving options with regular args
skip_start: c_intstart of non-option arguments skipped for interleaving
skip_end: c_intend of non-option arguments skipped for interleaving
Trait Implementations§
Source§impl Clone for apr_getopt_t
impl Clone for apr_getopt_t
Source§fn clone(&self) -> apr_getopt_t
fn clone(&self) -> apr_getopt_t
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 Debug for apr_getopt_t
impl Debug for apr_getopt_t
impl Copy for apr_getopt_t
Auto Trait Implementations§
impl Freeze for apr_getopt_t
impl RefUnwindSafe for apr_getopt_t
impl !Send for apr_getopt_t
impl !Sync for apr_getopt_t
impl Unpin for apr_getopt_t
impl UnsafeUnpin for apr_getopt_t
impl UnwindSafe for apr_getopt_t
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