Struct glsl_lang::transpiler::glsl::FormattingState [−][src]
Formatting state of the GLSL transpiler
Fields
settings: &'s FormattingSettingsFormatting settings
Implementations
impl<'s> FormattingState<'s>[src]
pub fn new_line(&mut self, required: bool) -> Result[src]
Append a pending new line to the output
pub fn consume_newline(&mut self)[src]
Consume the pending newlines
pub fn flush_line<F>(&mut self, f: &mut F) -> Result where
F: Write, [src]
F: Write,
Flush pending newlines to the output, if any
pub fn flush_space<F>(&mut self, f: &mut F) -> Result where
F: Write, [src]
F: Write,
Flush pending newlines as spaces to the output, if any
pub fn enter_block<F>(&mut self, f: &mut F) -> Result where
F: Write, [src]
F: Write,
Enter a new block, and update the indentation level
pub fn exit_block<F>(&mut self, f: &mut F) -> Result where
F: Write, [src]
F: Write,
Exit the current block, and update the indentation level
pub fn write_struct_field_separator<F>(&mut self, f: &mut F) -> Result where
F: Write, [src]
F: Write,
Write a struct field separator
pub fn write_struct_declaration_terminator<F>(&mut self, f: &mut F) -> Result where
F: Write, [src]
F: Write,
Write a struct declaration terminator
pub fn write_declaration_terminator<F>(&mut self, f: &mut F) -> Result where
F: Write, [src]
F: Write,
Write a declaration terminator
pub fn write_binary_op<F>(&self, f: &mut F, op: &str) -> Result where
F: Write, [src]
F: Write,
Write a binary operator
pub fn write_statement_terminator<F>(&mut self, f: &mut F) -> Result where
F: Write, [src]
F: Write,
Write a statement terminator
pub fn write_function_definition_terminator<F>(&mut self, f: &mut F) -> Result where
F: Write, [src]
F: Write,
Write a function definition terminator
Trait Implementations
impl<'s> Clone for FormattingState<'s>[src]
fn clone(&self) -> FormattingState<'s>[src]
pub fn clone_from(&mut self, source: &Self)1.0.0[src]
impl<'s> Copy for FormattingState<'s>[src]
impl<'s> Debug for FormattingState<'s>[src]
impl Default for FormattingState<'static>[src]
impl<'s> From<&'s FormattingSettings> for FormattingState<'s>[src]
fn from(settings: &'s FormattingSettings) -> Self[src]
impl<'s> PartialEq<FormattingState<'s>> for FormattingState<'s>[src]
fn eq(&self, other: &FormattingState<'s>) -> bool[src]
fn ne(&self, other: &FormattingState<'s>) -> bool[src]
impl<'s> StructuralPartialEq for FormattingState<'s>[src]
Auto Trait Implementations
impl<'s> RefUnwindSafe for FormattingState<'s>
impl<'s> Send for FormattingState<'s>
impl<'s> Sync for FormattingState<'s>
impl<'s> Unpin for FormattingState<'s>
impl<'s> UnwindSafe for FormattingState<'s>
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized, [src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized, [src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized, [src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T[src]
impl<T> From<T> for T[src]
impl<T, U> Into<U> for T where
U: From<T>, [src]
U: From<T>,
impl<T> IntoResult<T> for T[src]
type Err = Infallible
pub fn into_result(self) -> Result<T, <T as IntoResult<T>>::Err>[src]
impl<T> ToOwned for T where
T: Clone, [src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T[src]
pub fn clone_into(&self, target: &mut T)[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>, [src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>, [src]
U: TryFrom<T>,