OptionsMetadata

Trait OptionsMetadata 

Source
pub trait OptionsMetadata {
    // Required method
    fn record(visit: &mut dyn Visit);

    // Provided methods
    fn documentation() -> Option<&'static str> { ... }
    fn metadata() -> OptionSet
       where Self: Sized + 'static { ... }
}
Expand description

Returns metadata for its options.

Required Methods§

Source

fn record(visit: &mut dyn Visit)

Visits the options metadata of this object by calling visit for each option.

Provided Methods§

Source

fn documentation() -> Option<&'static str>

Source

fn metadata() -> OptionSet
where Self: Sized + 'static,

Returns the extracted metadata.

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.

Implementations on Foreign Types§

Source§

impl<T> OptionsMetadata for Option<T>
where T: OptionsMetadata,

Source§

fn record(visit: &mut dyn Visit)

Implementors§