pub struct ShortcutOption {
pub span: Span,
pub text: StrBody,
}Fields§
§span: Span§text: StrBodyTrait Implementations§
Source§impl Clone for ShortcutOption
impl Clone for ShortcutOption
Source§fn clone(&self) -> ShortcutOption
fn clone(&self) -> ShortcutOption
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ShortcutOption
impl Debug for ShortcutOption
Source§impl Parse for ShortcutOption
impl Parse for ShortcutOption
Source§fn partial_parse_with_ctx<I: IntoIterator<Item = Token>>(
partial: bool,
ctx: ParseCtx<'_>,
token_stream: I,
) -> Result<Self, ()>
fn partial_parse_with_ctx<I: IntoIterator<Item = Token>>( partial: bool, ctx: ParseCtx<'_>, token_stream: I, ) -> Result<Self, ()>
Parse an AST node with a shared parsing context. Errors are emitted into
ctx. Read moreSource§fn parse_with_ctx<I: IntoIterator<Item = Token>>(
ctx: ParseCtx<'_>,
token_stream: I,
) -> Result<Self, ()>
fn parse_with_ctx<I: IntoIterator<Item = Token>>( ctx: ParseCtx<'_>, token_stream: I, ) -> Result<Self, ()>
Parse an AST node with a shared parsing context. Errors are emitted into
ctx. Read moreSource§fn partial_parse_with_interner(
partial: bool,
source: &str,
span_base: u32,
interner: &mut Interner,
) -> Result<Self, Vec<Error>>
fn partial_parse_with_interner( partial: bool, source: &str, span_base: u32, interner: &mut Interner, ) -> Result<Self, Vec<Error>>
Convenience method for parsing source without a shared context. Errors are returned
in the
Err variant. Read moreSource§fn parse_with_interner(
source: &str,
span_base: u32,
interner: &mut Interner,
) -> Result<Self, Vec<Error>>
fn parse_with_interner( source: &str, span_base: u32, interner: &mut Interner, ) -> Result<Self, Vec<Error>>
Convenience method for parsing source without a shared context. Errors are returned
in the
Err variant. Read moreSource§impl PartialEq for ShortcutOption
impl PartialEq for ShortcutOption
impl Eq for ShortcutOption
impl StructuralPartialEq for ShortcutOption
Auto Trait Implementations§
impl Freeze for ShortcutOption
impl RefUnwindSafe for ShortcutOption
impl Send for ShortcutOption
impl Sync for ShortcutOption
impl Unpin for ShortcutOption
impl UnsafeUnpin for ShortcutOption
impl UnwindSafe for ShortcutOption
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