Struct glsl_lang_pp::processor::ProcessorStateBuilder
source · pub struct ProcessorStateBuilder<'r> {
core_profile: bool,
compatibility_profile: bool,
es_profile: bool,
extensions: Vec<(ExtensionName, ExtensionBehavior)>,
definitions: Vec<Define>,
registry: &'r Registry,
}
Fields§
§core_profile: bool
§compatibility_profile: bool
§es_profile: bool
§extensions: Vec<(ExtensionName, ExtensionBehavior)>
§definitions: Vec<Define>
§registry: &'r Registry
Implementations§
source§impl<'r> ProcessorStateBuilder<'r>
impl<'r> ProcessorStateBuilder<'r>
pub fn new(registry: &'r Registry) -> Self
pub fn registry<'s>(self, registry: &'s Registry) -> ProcessorStateBuilder<'s>
pub fn core_profile(self, core_profile: bool) -> Self
pub fn compatibility_profile(self, compatibility_profile: bool) -> Self
pub fn es_profile(self, es_profile: bool) -> Self
pub fn extension( self, name: impl Into<ExtensionName>, behavior: impl Into<ExtensionBehavior>, ) -> Self
pub fn definition(self, definition: impl Into<Define>) -> Self
pub fn finish(self) -> ProcessorState
Trait Implementations§
source§impl<'r> Clone for ProcessorStateBuilder<'r>
impl<'r> Clone for ProcessorStateBuilder<'r>
source§fn clone(&self) -> ProcessorStateBuilder<'r>
fn clone(&self) -> ProcessorStateBuilder<'r>
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 Default for ProcessorStateBuilder<'static>
impl Default for ProcessorStateBuilder<'static>
source§impl From<ProcessorStateBuilder<'_>> for ProcessorState
impl From<ProcessorStateBuilder<'_>> for ProcessorState
source§fn from(builder: ProcessorStateBuilder<'_>) -> Self
fn from(builder: ProcessorStateBuilder<'_>) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl<'r> Freeze for ProcessorStateBuilder<'r>
impl<'r> !RefUnwindSafe for ProcessorStateBuilder<'r>
impl<'r> !Send for ProcessorStateBuilder<'r>
impl<'r> !Sync for ProcessorStateBuilder<'r>
impl<'r> Unpin for ProcessorStateBuilder<'r>
impl<'r> !UnwindSafe for ProcessorStateBuilder<'r>
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
)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