ViewFields

Trait ViewFields 

Source
pub trait ViewFields:
    Clone
    + Copy
    + Hash
    + PartialEq
    + Eq {
    // Required methods
    fn as_str(&self) -> &'static str;
    fn from_str(name: &str) -> Result<Self>;

    // Provided methods
    fn from_str_iter<'a>(
        names: impl IntoIterator<Item = &'a str>,
    ) -> Result<HashSet<Self>> { ... }
    fn from_str_split(names: &str) -> Result<HashSet<Self>> { ... }
}

Required Methods§

Source

fn as_str(&self) -> &'static str

Source

fn from_str(name: &str) -> Result<Self>

Provided Methods§

Source

fn from_str_iter<'a>( names: impl IntoIterator<Item = &'a str>, ) -> Result<HashSet<Self>>

Source

fn from_str_split(names: &str) -> Result<HashSet<Self>>

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§