[][src]Enum fuzzy_pickles::ast::Comment

pub enum Comment {
    Line(Extent),
    Block(Extent),
}

Variants

Line(Extent)
Block(Extent)

Implementations

impl Comment[src]

pub fn into_line(self) -> Option<Extent>[src]

pub fn into_block(self) -> Option<Extent>[src]

pub fn as_line(&self) -> Option<&Extent>[src]

pub fn as_block(&self) -> Option<&Extent>[src]

pub fn is_line(&self) -> bool[src]

pub fn is_block(&self) -> bool[src]

Trait Implementations

impl Debug for Comment[src]

impl Eq for Comment[src]

impl HasExtent for Comment[src]

impl<'a> Index<&'a Comment> for str[src]

type Output = str

The returned type after indexing.

impl Index<Comment> for str[src]

type Output = str

The returned type after indexing.

impl PartialEq<Comment> for Comment[src]

impl StructuralEq for Comment[src]

impl StructuralPartialEq for Comment[src]

impl Visit for Comment[src]

Auto Trait Implementations

impl RefUnwindSafe for Comment

impl Send for Comment

impl Sync for Comment

impl Unpin for Comment

impl UnwindSafe for Comment

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> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[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.

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.