pub struct GlslMacroExpander { /* private fields */ }Expand description
A simple GLSL macro expander.
Implementations§
Source§impl GlslMacroExpander
impl GlslMacroExpander
pub fn new() -> Self
pub fn define(&mut self, name: impl Into<String>, value: impl Into<String>)
pub fn undef(&mut self, name: &str)
pub fn is_defined(&self, name: &str) -> bool
pub fn value(&self, name: &str) -> Option<&str>
pub fn emit_defines(&self) -> String
pub fn num_defines(&self) -> usize
Trait Implementations§
Source§impl Clone for GlslMacroExpander
impl Clone for GlslMacroExpander
Source§fn clone(&self) -> GlslMacroExpander
fn clone(&self) -> GlslMacroExpander
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for GlslMacroExpander
impl Debug for GlslMacroExpander
Source§impl Default for GlslMacroExpander
impl Default for GlslMacroExpander
Source§fn default() -> GlslMacroExpander
fn default() -> GlslMacroExpander
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for GlslMacroExpander
impl RefUnwindSafe for GlslMacroExpander
impl Send for GlslMacroExpander
impl Sync for GlslMacroExpander
impl Unpin for GlslMacroExpander
impl UnsafeUnpin for GlslMacroExpander
impl UnwindSafe for GlslMacroExpander
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more