syn_ext::ext

Trait GetPath

Source
pub trait GetPath {
    // Required method
    fn get_path(&self) -> Option<&Path>;
}
Expand description

Shortcut to get syn::Path from various types

Required Methods§

Source

fn get_path(&self) -> Option<&Path>

Returns syn::Path from object if possible

Implementations on Foreign Types§

Source§

impl GetPath for NestedMeta

Source§

fn get_path(&self) -> Option<&Path>

Get path if syn::NestedMeta::Meta; Otherwise None

Implementors§