Enum glsl_lang::transpiler::glsl::IndentStyle[][src]

pub enum IndentStyle {
    None,
    Tabs {
        tab_size: u32,
        count: u32,
    },
    Spaces {
        count: u32,
    },
}

Indentation style of the output

Variants

None

No indentation is generated

Tabs

Items are indented with tabs. In case spaces are needed for alignment, tabs are assumed to be tab_size characters wide.

Fields of Tabs

tab_size: u32

Size of the tabs in characters

count: u32

Number of tab characters used per indent level

Spaces

Items are indented with spaces.

Fields of Spaces

count: u32

Number of space characters used per indent level

Implementations

impl IndentStyle[src]

pub fn write<F>(&self, f: &mut F, levels: u32) -> Result where
    F: Write
[src]

Write the current indenting level and style to the output

Trait Implementations

impl Clone for IndentStyle[src]

impl Copy for IndentStyle[src]

impl Debug for IndentStyle[src]

impl Default for IndentStyle[src]

impl PartialEq<IndentStyle> for IndentStyle[src]

impl StructuralPartialEq for IndentStyle[src]

Auto Trait Implementations

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> IntoResult<T> for T[src]

type Err = Infallible

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

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.