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§
source§impl ParseOptions
impl ParseOptions
sourcepub fn new() -> ParseOptions
pub fn new() -> ParseOptions
Create new parsing options using default values
Trait Implementations§
source§impl Clone for ParseOptions
impl Clone for ParseOptions
source§fn clone(&self) -> ParseOptions
fn clone(&self) -> ParseOptions
Returns a copy 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 ParseOptions
impl Debug for ParseOptions
source§impl Default for ParseOptions
impl Default for ParseOptions
source§fn default() -> ParseOptions
fn default() -> ParseOptions
Returns the “default value” for a type. Read more
source§impl PartialEq for ParseOptions
impl PartialEq for ParseOptions
impl Copy for ParseOptions
impl Eq for ParseOptions
impl StructuralPartialEq for ParseOptions
Auto Trait Implementations§
impl Freeze for ParseOptions
impl RefUnwindSafe for ParseOptions
impl Send for ParseOptions
impl Sync for ParseOptions
impl Unpin for ParseOptions
impl UnwindSafe for ParseOptions
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more