[−][src]Enum rustdoc::html::render::Setting

pub(in html::render) enum Setting {
    Section {
        description: &'static str,
        sub_settings: Vec<Setting>,
    },
    Toggle {
        js_data_name: &'static str,
        description: &'static str,
        default_value: bool,
    },
    Select {
        js_data_name: &'static str,
        description: &'static str,
        default_value: &'static str,
        options: Vec<(String, String)>,
    },
}

Variants

Section

Fields of Section

description: &'static strsub_settings: Vec<Setting>
Toggle

Fields of Toggle

js_data_name: &'static strdescription: &'static strdefault_value: bool
Select

Fields of Select

js_data_name: &'static strdescription: &'static strdefault_value: &'static stroptions: Vec<(String, String)>

Implementations

impl Setting[src]

pub(in html::render) fn display(
    &self,
    root_path: &str,
    suffix: &str
) -> String
[src]

Trait Implementations

impl Debug for Setting[src]

impl From<(&'static str, &'static str, bool)> for Setting[src]

impl<T: Into<Setting>> From<(&'static str, Vec<T>)> for Setting[src]

Auto Trait Implementations

impl RefUnwindSafe for Setting

impl Send for Setting

impl Sync for Setting

impl Unpin for Setting

impl UnwindSafe for Setting

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized, 
[src]

impl<T> Borrow<T> for T where
    T: ?Sized, 
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized, 
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>, 

impl<T> WithConstness for T[src]