pub struct OpaqueFeatures {Show 28 fields
pub sun_shadow: bool,
pub soft_search: bool,
pub soft_filter: bool,
pub cascade_blend: bool,
pub probes: bool,
pub local_reflections: bool,
pub ssr: bool,
pub canopy: bool,
pub contact: bool,
pub authored_ambient: bool,
pub caustics: bool,
pub content: bool,
pub maps: bool,
pub detail: bool,
pub ageing: bool,
pub fine_noise: bool,
pub uv1: bool,
pub content_cutout: bool,
pub lacquer: bool,
pub procedural_lacquer: bool,
pub scratch: bool,
pub grime: bool,
pub wood: bool,
pub wall: bool,
pub fibre: bool,
pub crinkle: bool,
pub procedural_detail: bool,
pub film: bool,
}Fields§
§sun_shadow: bool§soft_search: bool§soft_filter: bool§cascade_blend: bool§probes: bool§local_reflections: bool§ssr: bool§canopy: bool§contact: bool§caustics: bool§content: bool§maps: bool§detail: bool§ageing: bool§fine_noise: bool§uv1: bool§content_cutout: bool§lacquer: bool§procedural_lacquer: bool§scratch: bool§grime: bool§wood: bool§wall: bool§fibre: bool§crinkle: bool§procedural_detail: bool§film: boolImplementations§
Source§impl OpaqueFeatures
impl OpaqueFeatures
pub const NAMES: [&'static str; 28]
pub const ALL: Self
pub const NONE: Self
pub const fn from_flags(flags: [bool; 28]) -> Self
pub const fn flags(self) -> [bool; 28]
pub fn named(name: &str) -> Option<Self>
pub fn union(self, other: Self) -> Self
pub fn without(self, other: Self) -> Self
pub fn names(self) -> Vec<&'static str>
Trait Implementations§
Source§impl Clone for OpaqueFeatures
impl Clone for OpaqueFeatures
Source§fn clone(&self) -> OpaqueFeatures
fn clone(&self) -> OpaqueFeatures
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 OpaqueFeatures
impl Debug for OpaqueFeatures
Source§impl Default for OpaqueFeatures
impl Default for OpaqueFeatures
Source§fn default() -> OpaqueFeatures
fn default() -> OpaqueFeatures
Returns the “default value” for a type. Read more
Source§impl Hash for OpaqueFeatures
impl Hash for OpaqueFeatures
Source§impl PartialEq for OpaqueFeatures
impl PartialEq for OpaqueFeatures
Source§fn eq(&self, other: &OpaqueFeatures) -> bool
fn eq(&self, other: &OpaqueFeatures) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Copy for OpaqueFeatures
impl Eq for OpaqueFeatures
impl StructuralPartialEq for OpaqueFeatures
Auto Trait Implementations§
impl Freeze for OpaqueFeatures
impl RefUnwindSafe for OpaqueFeatures
impl Send for OpaqueFeatures
impl Sync for OpaqueFeatures
impl Unpin for OpaqueFeatures
impl UnsafeUnpin for OpaqueFeatures
impl UnwindSafe for OpaqueFeatures
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,
§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Convert
Box<dyn Trait> (where Trait: Downcast) to Box<dyn Any>. Box<dyn Any> can
then be further downcast into Box<ConcreteType> where ConcreteType implements Trait.§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Convert
Rc<Trait> (where Trait: Downcast) to Rc<Any>. Rc<Any> can then be
further downcast into Rc<ConcreteType> where ConcreteType implements Trait.§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
Convert
&Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &Any’s vtable from &Trait’s.§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
Convert
&mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &mut Any’s vtable from &mut Trait’s.§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Converts
Box<dyn Trait> (where Trait: Downcast) to Box<dyn Any>, which can then be
downcast into Box<dyn ConcreteType> where ConcreteType implements Trait.§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Converts
Rc<Trait> (where Trait: Downcast) to Rc<Any>, which can then be further
downcast into Rc<ConcreteType> where ConcreteType implements Trait.§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
Converts
&Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &Any’s vtable from &Trait’s.§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
Converts
&mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &mut Any’s vtable from &mut Trait’s.§impl<T> DowncastSend for T
impl<T> DowncastSend for T
§impl<T> DowncastSync for T
impl<T> DowncastSync for T
§impl<T> DowncastSync for T
impl<T> DowncastSync for T
§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
§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
Compare self to
key and return true if they are equal.§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
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§impl<F, T, S> SimdInto<T, S> for Fwhere
T: SimdFrom<F, S>,
S: Simd,
impl<F, T, S> SimdInto<T, S> for Fwhere
T: SimdFrom<F, S>,
S: Simd,
§impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
§fn to_subset(&self) -> Option<SS>
fn to_subset(&self) -> Option<SS>
The inverse inclusion map: attempts to construct
self from the equivalent element of its
superset. Read more§fn is_in_subset(&self) -> bool
fn is_in_subset(&self) -> bool
Checks if
self is actually part of its subset T (and can be converted to it).§fn to_subset_unchecked(&self) -> SS
fn to_subset_unchecked(&self) -> SS
Use with care! Same as
self.to_subset but without any property checks. Always succeeds.§fn from_subset(element: &SS) -> SP
fn from_subset(element: &SS) -> SP
The inclusion map: converts
self to the equivalent element of its superset.