Struct If
Other items innu_command::commands
pub struct If;
impl WholeStreamCommand for If
fn name(&self) -> &str
fn signature(&self) -> Signature
fn usage(&self) -> &str
fn run(&self, args: CommandArgs) -> Result<OutputStream, ShellError>
fn examples(&self) -> Vec<Example>
fn extra_usage(&self) -> &str
fn run_with_actions( &self, _args: CommandArgs) -> Result<ActionStream, ShellError>
fn is_binary(&self) -> bool
fn is_internal(&self) -> bool
impl RefUnwindSafe for If
impl Send for If
impl Sync for If
impl Unpin for If
impl UnwindSafe for If
impl<T> Any for T where T: 'static + ?Sized,
pub fn type_id(&self) -> TypeId
Gets the TypeId of self. Read more
TypeId
self
impl<T> Borrow<T> for T where T: ?Sized,
pub fn borrow(&self) -> &T
Immutably borrows from an owned value. Read more
impl<T> BorrowMut<T> for T where T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
impl<T> From<T> for T
pub fn from(t: T) -> T
Performs the conversion.
impl<T, U> Into<U> for T where U: From<T>,
pub fn into(self) -> U
impl<T> Pointable for T
pub const ALIGN: usize
The alignment of pointer.
type Init = T
The type for initializers.
pub unsafe fn init(init: <T as Pointable>::Init) -> usize
Initializes a with the given initializer. Read more
pub unsafe fn deref<'a>(ptr: usize) -> &'a T
Dereferences the given pointer. Read more
pub unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T
Mutably dereferences the given pointer. Read more
pub unsafe fn drop(ptr: usize)
Drops the object pointed to by the given pointer. Read more
impl<T> Same<T> for T
type Output = T
Should always be Self
Self
impl<T> SpannedItem for T
fn spanned(self, span: impl Into<Span>) -> Spanned<Self>
Converts a value into a Spanned value
fn spanned_unknown(self) -> Spanned<Self>
Converts a value into a Spanned value, using an unknown Span
impl<T> TaggedItem for T
fn tagged(self, tag: impl Into<Tag>) -> Tagged<Self>
fn tagged_unknown(self) -> Tagged<Self>
impl<T, U> TryFrom<U> for T where U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
impl<T, U> TryInto<U> for T where U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
pub fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
impl<V, T> VZip<V> for T where V: MultiLane<T>,
pub fn vzip(self) -> V