[−][src]Struct full_moon::ast::span::ContainedSpan
A contained span with the beginning and ending bounds. Refer to the module documentation for more details.
Methods
impl<'a> ContainedSpan<'a>
[src]
pub fn new(start: TokenReference<'a>, end: 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
pub fn tokens_mut(
&mut self
) -> (&mut TokenReference<'a>, &mut TokenReference<'a>)
[src]
&mut self
) -> (&mut TokenReference<'a>, &mut TokenReference<'a>)
Returns the start and end bounds in a tuple as mutable references
Trait Implementations
impl<'a> Clone for ContainedSpan<'a>
[src]
fn clone(&self) -> ContainedSpan<'a>
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl<'a> Debug for ContainedSpan<'a>
[src]
impl<'de: 'a, 'a> Deserialize<'de> for ContainedSpan<'a>
[src]
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
[src]
__D: Deserializer<'de>,
impl<'a> Node for ContainedSpan<'a>
[src]
fn start_position(&self) -> Option<Position>
[src]
fn end_position(&self) -> Option<Position>
[src]
fn similar(&self, other: &Self) -> bool
[src]
fn range(&self) -> Option<(Position, Position)>
[src]
fn surrounding_ignore_tokens<'ast, 'b>(
&self,
ast: &'b Ast<'ast>
) -> Option<(Vec<&'b Token<'ast>>, Vec<&'b Token<'ast>>)>
[src]
&self,
ast: &'b Ast<'ast>
) -> Option<(Vec<&'b Token<'ast>>, Vec<&'b Token<'ast>>)>
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.
fn owned(&self) -> Self::Owned
[src]
impl<'a> PartialEq<ContainedSpan<'a>> for ContainedSpan<'a>
[src]
fn eq(&self, other: &ContainedSpan<'a>) -> bool
[src]
fn ne(&self, other: &ContainedSpan<'a>) -> bool
[src]
impl<'a> Serialize for ContainedSpan<'a>
[src]
fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error> where
__S: Serializer,
[src]
__S: Serializer,
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]
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,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> DeserializeOwned for T where
T: Deserialize<'de>,
[src]
T: Deserialize<'de>,
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
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.
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>,