Struct wasm_tools::InputOutput
source · pub struct InputOutput { /* private fields */ }
Implementations§
source§impl InputOutput
impl InputOutput
pub fn parse_input_wasm(&self) -> Result<Vec<u8>>
pub fn output_wasm(&self, wasm: &[u8], wat: bool) -> Result<()>
pub fn output(&self, bytes: Output<'_>) -> Result<()>
pub fn output_writer(&self) -> Result<Box<dyn WriteColor>>
pub fn output_path(&self) -> Option<&Path>
pub fn input_path(&self) -> Option<&Path>
pub fn general_opts(&self) -> &GeneralOpts
Trait Implementations§
source§impl Args for InputOutput
impl Args for InputOutput
source§fn augment_args<'b>(__clap_app: Command) -> Command
fn augment_args<'b>(__clap_app: Command) -> Command
source§impl CommandFactory for InputOutput
impl CommandFactory for InputOutput
source§impl FromArgMatches for InputOutput
impl FromArgMatches for InputOutput
source§fn from_arg_matches(__clap_arg_matches: &ArgMatches) -> Result<Self, Error>
fn from_arg_matches(__clap_arg_matches: &ArgMatches) -> Result<Self, Error>
source§fn from_arg_matches_mut(
__clap_arg_matches: &mut ArgMatches,
) -> Result<Self, Error>
fn from_arg_matches_mut( __clap_arg_matches: &mut ArgMatches, ) -> Result<Self, Error>
source§fn update_from_arg_matches(
&mut self,
__clap_arg_matches: &ArgMatches,
) -> Result<(), Error>
fn update_from_arg_matches( &mut self, __clap_arg_matches: &ArgMatches, ) -> Result<(), Error>
Assign values from
ArgMatches
to self
.source§fn update_from_arg_matches_mut(
&mut self,
__clap_arg_matches: &mut ArgMatches,
) -> Result<(), Error>
fn update_from_arg_matches_mut( &mut self, __clap_arg_matches: &mut ArgMatches, ) -> Result<(), Error>
Assign values from
ArgMatches
to self
.source§impl Parser for InputOutput
impl Parser for InputOutput
source§fn parse_from<I, T>(itr: I) -> Self
fn parse_from<I, T>(itr: I) -> Self
Parse from iterator, exit on error.
source§fn try_parse_from<I, T>(itr: I) -> Result<Self, Error>
fn try_parse_from<I, T>(itr: I) -> Result<Self, Error>
Parse from iterator, return Err on error.
source§fn update_from<I, T>(&mut self, itr: I)
fn update_from<I, T>(&mut self, itr: I)
Update from iterator, exit on error.
Auto Trait Implementations§
impl Freeze for InputOutput
impl RefUnwindSafe for InputOutput
impl Send for InputOutput
impl Sync for InputOutput
impl Unpin for InputOutput
impl UnwindSafe for InputOutput
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