[−][src]Struct silkworm_syn::ast::Path
Fields
span: Span
segments: Vec<PathSegment>
Implementations
impl Path
[src]
pub fn is_segment(&self) -> bool
[src]
Returns true
if there is only one segment.
pub fn as_segment(&self) -> Option<&PathSegment>
[src]
Returns the only segment if there is only one.
Trait Implementations
impl Clone for Path
[src]
impl Debug for Path
[src]
impl Eq for Path
[src]
impl Parse for Path
[src]
const SOURCE_BLOCK_MODE: BlockMode
[src]
const SOURCE_INLINE_MODE: InlineMode
[src]
fn partial_parse_with_ctx<I: IntoIterator<Item = Token>>(
partial: bool,
ctx: ParseCtx,
token_stream: I
) -> Result<Self, ()>
[src]
partial: bool,
ctx: ParseCtx,
token_stream: I
) -> Result<Self, ()>
fn parse_with_ctx<I: IntoIterator<Item = Token>>(
ctx: ParseCtx,
token_stream: I
) -> Result<Self, ()>
[src]
ctx: ParseCtx,
token_stream: I
) -> Result<Self, ()>
fn partial_parse_with_interner(
partial: bool,
source: &str,
span_base: u32,
interner: &mut Interner
) -> Result<Self, Vec<Error>>
[src]
partial: bool,
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>>
[src]
source: &str,
span_base: u32,
interner: &mut Interner
) -> Result<Self, Vec<Error>>
fn partial_parse(
partial: bool,
source: &str,
span_base: u32
) -> Result<(Self, Interner), Vec<Error>>
[src]
partial: bool,
source: &str,
span_base: u32
) -> Result<(Self, Interner), Vec<Error>>
fn parse(source: &str, span_base: u32) -> Result<(Self, Interner), Vec<Error>>
[src]
impl PartialEq<Path> for Path
[src]
impl PartialEq<PathSegment> for Path
[src]
fn eq(&self, other: &PathSegment) -> bool
[src]
#[must_use]fn ne(&self, other: &Rhs) -> bool
1.0.0[src]
impl PartialEq<Symbol> for Path
[src]
impl StructuralEq for Path
[src]
Auto Trait Implementations
impl RefUnwindSafe for Path
impl Send for Path
impl Sync for Path
impl Unpin for Path
impl UnwindSafe for Path
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> 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>,