Trait devise_core::ext::PathExt

source ·
pub trait PathExt {
    // Required methods
    fn is(&self, global: bool, segments: &[&str]) -> bool;
    fn is_local(&self, segments: &[&str]) -> bool;
    fn is_global(&self, segments: &[&str]) -> bool;
    fn last_ident(&self) -> Option<&Ident>;
    fn generics(&self) -> Option<&Punctuated<GenericArgument, Comma>>;
}

Required Methods§

source

fn is(&self, global: bool, segments: &[&str]) -> bool

source

fn is_local(&self, segments: &[&str]) -> bool

source

fn is_global(&self, segments: &[&str]) -> bool

source

fn last_ident(&self) -> Option<&Ident>

source

fn generics(&self) -> Option<&Punctuated<GenericArgument, Comma>>

Implementations on Foreign Types§

source§

impl PathExt for Path

source§

fn is(&self, global: bool, segments: &[&str]) -> bool

source§

fn is_local(&self, segments: &[&str]) -> bool

source§

fn is_global(&self, segments: &[&str]) -> bool

source§

fn last_ident(&self) -> Option<&Ident>

source§

fn generics(&self) -> Option<&Punctuated<GenericArgument, Comma>>

Implementors§