Struct glsl_lang::transpiler::glsl::FormattingSettings[][src]

pub struct FormattingSettings {
    pub indent_style: IndentStyle,
    pub newline_after_open_block: bool,
    pub newline_before_close_block: bool,
    pub newline_after_close_block: bool,
    pub struct_field_separator: Whitespace,
    pub struct_declaration_terminator: Whitespace,
    pub declaration_terminator: Whitespace,
    pub spaces_around_binary_ops: bool,
    pub statement_terminator: Whitespace,
    pub function_definition_terminator: Whitespace,
}

Formatting settings for the GLSL transpiler

Fields

indent_style: IndentStyle

Indentation style of the output

newline_after_open_block: bool

Insert newlines after block open braces

newline_before_close_block: bool

Insert newlines before block close braces

newline_after_close_block: bool

Insert newline after block close brace

struct_field_separator: Whitespace

What to insert between fields of a struct

struct_declaration_terminator: Whitespace

What to insert after a struct declaration

declaration_terminator: Whitespace

What to insert after a declaration

spaces_around_binary_ops: bool

Insert spaces around binary ops

statement_terminator: Whitespace

What to insert after a statement

function_definition_terminator: Whitespace

What to insert after a function definition

Trait Implementations

impl Clone for FormattingSettings[src]

impl Debug for FormattingSettings[src]

impl Default for FormattingSettings[src]

impl<'s> From<&'s FormattingSettings> for FormattingState<'s>[src]

impl PartialEq<FormattingSettings> for FormattingSettings[src]

impl StructuralPartialEq for FormattingSettings[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.