[][src]Struct gcode::Comment

pub struct Comment<'input> {
    pub value: &'input str,
    pub span: Span,
}

A comment.

Fields

value: &'input str

The comment itself.

span: Span

Where the comment is located in the original string.

Trait Implementations

impl<'input> Clone for Comment<'input>[src]

impl<'input> Copy for Comment<'input>[src]

impl<'input> Debug for Comment<'input>[src]

impl<'de: 'input, 'input> Deserialize<'de> for Comment<'input>[src]

impl<'input> Eq for Comment<'input>[src]

impl<'input> PartialEq<Comment<'input>> for Comment<'input>[src]

impl<'input> Serialize for Comment<'input>[src]

impl<'input> StructuralEq for Comment<'input>[src]

impl<'input> StructuralPartialEq for Comment<'input>[src]

Auto Trait Implementations

impl<'input> RefUnwindSafe for Comment<'input>

impl<'input> Send for Comment<'input>

impl<'input> Sync for Comment<'input>

impl<'input> Unpin for Comment<'input>

impl<'input> UnwindSafe for Comment<'input>

Blanket Implementations

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

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

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

impl<T> DeserializeOwned for T where
    T: Deserialize<'de>, 
[src]

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

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

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

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.

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.