Struct nu_plugin_inc::Inc[][src]

pub struct Inc {
    pub field: Option<Tagged<ColumnPath>>,
    pub error: Option<String>,
    pub action: Option<Action>,
}

Fields

field: Option<Tagged<ColumnPath>>error: Option<String>action: Option<Action>

Implementations

impl Inc[src]

pub fn new() -> Self[src]

pub fn for_semver(&mut self, part: SemVerAction)[src]

pub fn usage() -> &'static str[src]

pub fn inc(&self, value: Value) -> Result<Value, ShellError>[src]

Trait Implementations

impl Default for Inc[src]

fn default() -> Inc[src]

Returns the “default value” for a type. Read more

impl Plugin for Inc[src]

fn config(&mut self) -> Result<Signature, ShellError>[src]

The config method is used to configure a plugin’s user interface / signature. Read more

fn begin_filter(
    &mut self,
    call_info: CallInfo
) -> Result<Vec<ReturnValue>, ShellError>
[src]

begin_filter is the first method to be called if the Signature of the plugin is configured to be filterable. Any setup required for the plugin such as parsing arguments from CallInfo or initializing data structures can be done here. The CallInfo parameter will contain data configured in the config method of the Plugin trait. Read more

fn filter(&mut self, input: Value) -> Result<Vec<ReturnValue>, ShellError>[src]

filter is called for every Value that is processed by the plugin. This method requires the plugin Signature to be configured as filterable. Read more

fn end_filter(
    &mut self
) -> Result<Vec<Result<ReturnSuccess, ShellError>, Global>, ShellError>
[src]

end_filter is the last method to be called by the plugin after all Values are processed by the plugin. This method requires the plugin Signature to be configured as filterable. Read more

fn sink(&mut self, _call_info: CallInfo, _input: Vec<Value, Global>)[src]

sink consumes the Values that are passed in, preventing further processing. This method requires the plugin Signature to be configured without filtering. Read more

fn quit(&mut self)[src]

Auto Trait Implementations

impl RefUnwindSafe for Inc

impl Send for Inc

impl Sync for Inc

impl Unpin for Inc

impl UnwindSafe for Inc

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

pub fn type_id(&self) -> TypeId[src]

Gets the TypeId of self. Read more

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

pub fn borrow(&self) -> &T[src]

Immutably borrows from an owned value. Read more

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

pub fn borrow_mut(&mut self) -> &mut T[src]

Mutably borrows from an owned value. Read more

impl<T> From<T> for T[src]

pub fn from(t: T) -> T[src]

Performs the conversion.

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

pub fn into(self) -> U[src]

Performs the conversion.

impl<T> SpannedItem for T[src]

fn spanned(self, span: impl Into<Span>) -> Spanned<Self>[src]

Converts a value into a Spanned value

fn spanned_unknown(self) -> Spanned<Self>[src]

Converts a value into a Spanned value, using an unknown Span

impl<T> TaggedItem for T[src]

fn tagged(self, tag: impl Into<Tag>) -> Tagged<Self>[src]

fn tagged_unknown(self) -> Tagged<Self>[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

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>[src]

Performs the conversion.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

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

The type returned in the event of a conversion error.

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

Performs the conversion.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>, 

pub fn vzip(self) -> V