[][src]Struct nu_source::Span

pub struct Span { /* fields omitted */ }

Methods

impl Span[src]

pub fn unknown() -> Span[src]

pub fn new(start: usize, end: usize) -> Span[src]

pub fn for_char(pos: usize) -> Span[src]

pub fn until(&self, other: impl Into<Span>) -> Span[src]

pub fn until_option(&self, other: Option<impl Into<Span>>) -> Span[src]

pub fn string<'a>(&self, source: &'a str) -> String[src]

pub fn spanned_slice<'a>(&self, source: &'a str) -> Spanned<&'a str>[src]

pub fn spanned_string<'a>(&self, source: &'a str) -> Spanned<String>[src]

pub fn start(&self) -> usize[src]

pub fn end(&self) -> usize[src]

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

pub fn slice<'a>(&self, source: &'a str) -> &'a str[src]

Trait Implementations

impl HasSpan for Span[src]

impl PrettyDebugWithSource for Span[src]

impl<'_, T> From<LocatedSpanEx<&'_ str, T>> for Span[src]

impl<T> From<(LocatedSpanEx<T, u64>, LocatedSpanEx<T, u64>)> for Span[src]

impl From<(usize, usize)> for Span[src]

impl<'_> From<&'_ Range<usize>> for Span[src]

impl From<Span> for Tag[src]

impl<'_> From<&'_ Span> for Tag[src]

impl From<Tag> for Span[src]

impl<'_> From<&'_ Tag> for Span[src]

impl<'_> From<&'_ Span> for Span[src]

impl From<Option<Span>> for Span[src]

impl Clone for Span[src]

impl Copy for Span[src]

impl Eq for Span[src]

impl Ord for Span[src]

impl PartialEq<Span> for Span[src]

impl PartialOrd<Span> for Span[src]

impl Debug for Span[src]

impl Hash for Span[src]

impl StructuralPartialEq for Span[src]

impl StructuralEq for Span[src]

impl Serialize for Span[src]

impl<'de> Deserialize<'de> for Span[src]

impl ReportingSpan for Span[src]

Auto Trait Implementations

impl Send for Span

impl Sync for Span

impl Unpin for Span

impl UnwindSafe for Span

impl RefUnwindSafe for Span

Blanket Implementations

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

impl<T> From<T> for 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.

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

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

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

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