pub struct PassOpt { /* private fields */ }
Expand description
Option that can be passed to a pass.
Implementations
sourceimpl PassOpt
impl PassOpt
pub const fn new(
name: &'static str,
description: &'static str,
default: ParseVal,
parse: fn(_: &str) -> Option<ParseVal>
) -> Self
pub const fn name(&self) -> &'static str
pub const fn description(&self) -> &'static str
pub const fn default(&self) -> &ParseVal
pub fn parse_bool(s: &str) -> Option<ParseVal>
sourcepub fn parse_num_list(s: &str) -> Option<ParseVal>
pub fn parse_num_list(s: &str) -> Option<ParseVal>
Parse a list of numbers from a string.
pub fn parse_outstream(s: &str) -> Option<ParseVal>
Auto Trait Implementations
impl RefUnwindSafe for PassOpt
impl Send for PassOpt
impl Sync for PassOpt
impl Unpin for PassOpt
impl UnwindSafe for PassOpt
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