[−][src]Struct nu_parser::LiteCommand
A LiteCommand is a list of words that will get meaning when processed by
the parser.
Fields
parts: Vec<Spanned<String>>comments: Option<Vec<Spanned<String>>>Preceding comments. Each String in the vec is one line. The comment literal is not included.
Implementations
impl LiteCommand[src]
pub fn comments_joined(&self) -> String[src]
pub fn is_empty(&self) -> bool[src]
pub fn has_content(&self) -> bool[src]
pub fn push(&mut self, item: Spanned<String>)[src]
Trait Implementations
impl Clone for LiteCommand[src]
fn clone(&self) -> LiteCommand[src]
pub fn clone_from(&mut self, source: &Self)1.0.0[src]
impl Debug for LiteCommand[src]
Auto Trait Implementations
impl RefUnwindSafe for LiteCommand[src]
impl Send for LiteCommand[src]
impl Sync for LiteCommand[src]
impl Unpin for LiteCommand[src]
impl UnwindSafe for LiteCommand[src]
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized, [src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized, [src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized, [src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T[src]
impl<T> From<T> for T[src]
impl<T, U> Into<U> for T where
U: From<T>, [src]
U: From<T>,
impl<T> SpannedItem for T[src]
pub fn spanned(self, span: impl Into<Span>) -> Spanned<Self>[src]
pub fn spanned_unknown(self) -> Spanned<Self>[src]
impl<T> TaggedItem for T[src]
pub fn tagged(self, tag: impl Into<Tag>) -> Tagged<Self>[src]
pub fn tagged_unknown(self) -> Tagged<Self>[src]
impl<T> ToOwned for T where
T: Clone, [src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T[src]
pub fn clone_into(&self, target: &mut T)[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>, [src]
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>[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>, [src]
U: TryFrom<T>,
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]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,