[][src]Struct full_moon::ast::span::ContainedSpan

pub struct ContainedSpan<'a> { /* fields omitted */ }

A contained span with the beginning and ending bounds. Refer to the module documentation for more details.

Implementations

impl<'a> ContainedSpan<'a>[src]

pub fn new(
    start: Cow<'a, TokenReference<'a>>,
    end: Cow<'a, TokenReference<'a>>
) -> Self
[src]

Creates a contained span from the start and end bounds

pub fn tokens(&self) -> (&TokenReference<'a>, &TokenReference<'a>)[src]

Returns the start and end bounds in a tuple as references

Trait Implementations

impl<'a> Clone for ContainedSpan<'a>[src]

impl<'a> Debug for ContainedSpan<'a>[src]

impl<'de: 'a, 'a> Deserialize<'de> for ContainedSpan<'a>[src]

impl<'a> Node<'a> for ContainedSpan<'a>[src]

impl<'a> Owned for ContainedSpan<'a>[src]

type Owned = ContainedSpan<'static>

What an owned version of the object looks like. Usually contains a 'static lifetime.

impl<'a> PartialEq<ContainedSpan<'a>> for ContainedSpan<'a>[src]

impl<'a> Serialize for ContainedSpan<'a>[src]

impl<'a> StructuralPartialEq for ContainedSpan<'a>[src]

Auto Trait Implementations

impl<'a> RefUnwindSafe for ContainedSpan<'a>

impl<'a> Send for ContainedSpan<'a>

impl<'a> Sync for ContainedSpan<'a>

impl<'a> Unpin for ContainedSpan<'a>

impl<'a> UnwindSafe for ContainedSpan<'a>

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: for<'de> 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.