Struct glsl_lang::parse::ParseOptions
source · [−]pub struct ParseOptions {
pub default_version: u16,
pub target_vulkan: bool,
pub source_id: FileId,
pub allow_rs_ident: bool,
}
Expand description
Parsing options
Fields
default_version: u16
Default GLSL version number to parse source as
target_vulkan: bool
true
if the GLSL target should be Vulkan instead of OpenGL
source_id: FileId
Unique source identifier for token positions
allow_rs_ident: bool
Allow Rust quoting identifiers (#(ident)
) in the source
Implementations
sourceimpl ParseOptions
impl ParseOptions
sourcepub fn new() -> ParseOptions
pub fn new() -> ParseOptions
Create new parsing options using default values
Trait Implementations
sourceimpl Clone for ParseOptions
impl Clone for ParseOptions
sourcefn clone(&self) -> ParseOptions
fn clone(&self) -> ParseOptions
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for ParseOptions
impl Debug for ParseOptions
sourceimpl Default for ParseOptions
impl Default for ParseOptions
sourcefn default() -> ParseOptions
fn default() -> ParseOptions
Returns the “default value” for a type. Read more
sourceimpl PartialEq<ParseOptions> for ParseOptions
impl PartialEq<ParseOptions> for ParseOptions
sourcefn eq(&self, other: &ParseOptions) -> bool
fn eq(&self, other: &ParseOptions) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &ParseOptions) -> bool
fn ne(&self, other: &ParseOptions) -> bool
This method tests for !=
.
impl Copy for ParseOptions
impl StructuralPartialEq for ParseOptions
Auto Trait Implementations
impl RefUnwindSafe for ParseOptions
impl Send for ParseOptions
impl Sync for ParseOptions
impl Unpin for ParseOptions
impl UnwindSafe for ParseOptions
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more