Struct Xtask

Source
pub struct Xtask {
    pub offline: bool,
    pub subcommand: XtaskCmd,
}

Fields§

§offline: bool§subcommand: XtaskCmd

Implementations§

Source§

impl Xtask

Source

pub fn from_env_or_exit() -> Self

Source

pub fn from_env() -> Result<Self>

Source

pub fn from_vec(args: Vec<OsString>) -> Result<Self>

Source§

impl Xtask

Source

pub(crate) fn from_env_or_exit_() -> Self

Source

pub(crate) fn from_env_() -> Result<Self>

Source

pub(crate) fn from_vec_(args: Vec<OsString>) -> Result<Self>

Source§

impl Xtask

Source

pub(crate) fn parse_(p_: &mut Parser) -> Result<Self>

Source§

impl Xtask

Source

pub(crate) const HELP_: &'static str = "xtask\n\nOPTIONS:\n --offline\n\n -h, --help\n Prints help information.\n\nSUBCOMMANDS:\n\nxtask test\n Run regression tests\n\n ARGS:\n [filter]\n Only run tests containing `filter` as substring.\n\n\nxtask run\n Run the Flux binary on the given input file setting the appropriate flags to use\n custom Flux attributes and macros.\n\n ARGS:\n <input>\n Input file\n\n <opts>...\n Extra options to pass to the Flux binary, e.g. `cargo xtask run file.rs -- -Zdump-mir=y`\n\n\nxtask expand\n Expand Flux macros\n\n ARGS:\n <input>\n Input file\n\n\nxtask install\n Install Flux binaries to `~/.cargo/bin` and precompiled libraries and driver to `~/.flux`\n\n OPTIONS:\n --profile <profile>\n Select build profile for the `flux-driver`, either \'release\', \'dev\', or \'profiling\'. Default \'release\'\n\n\nxtask uninstall\n Uninstall Flux binaries and libraries\n\n\nxtask build-sysroot\n Generate precompiled libraries\n\n\nxtask doc\n Build the documentation\n\n OPTIONS:\n -o, --open\n"

Trait Implementations§

Source§

impl Debug for Xtask

Source§

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

Formats the value using the given formatter. Read more

Auto Trait Implementations§

§

impl Freeze for Xtask

§

impl RefUnwindSafe for Xtask

§

impl Send for Xtask

§

impl Sync for Xtask

§

impl Unpin for Xtask

§

impl UnwindSafe for Xtask

Blanket Implementations§

Source§

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

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

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

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

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

Source§

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

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

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

Source§

fn into(self) -> U

Calls U::from(self).

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

Source§

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

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

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

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

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

Performs the conversion.