devise::ext

Trait 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>>

Implementors§