pub struct TryOrNil {
pub token: Ranged<Token>,
pub body: Ranged<Expression>,
}Expand description
The syntax components of a try-or-nil expression (foo?).
Fields§
§token: Ranged<Token>The question mark token.
body: Ranged<Expression>The expression to try.
Trait Implementations§
source§impl TokenizeInto for TryOrNil
impl TokenizeInto for TryOrNil
impl StructuralPartialEq for TryOrNil
Auto Trait Implementations§
impl Freeze for TryOrNil
impl RefUnwindSafe for TryOrNil
impl Send for TryOrNil
impl Sync for TryOrNil
impl Unpin for TryOrNil
impl UnwindSafe for TryOrNil
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<A> Cast for A
impl<A> Cast for A
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit)§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> TokenizeRanged for Twhere
T: TokenizeInto,
impl<T> TokenizeRanged for Twhere
T: TokenizeInto,
source§fn tokenize_ranged(
&self,
_range: SourceRange,
tokens: &mut VecDeque<Ranged<Token>>,
)
fn tokenize_ranged( &self, _range: SourceRange, tokens: &mut VecDeque<Ranged<Token>>, )
Tokenize
self into tokens within the enclosing range.