Skip to main content

GetPath

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

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§