Type Alias oxygengine_physics_2d::prelude::material::MaterialId
source · pub type MaterialId = u32;
Expand description
The identifier of a material.
Trait Implementations§
§impl SimdValue for u32
impl SimdValue for u32
§fn splat(val: <u32 as SimdValue>::Element) -> u32
fn splat(val: <u32 as SimdValue>::Element) -> u32
Initializes an SIMD value with each lanes set to
val
.§fn extract(&self, _: usize) -> <u32 as SimdValue>::Element
fn extract(&self, _: usize) -> <u32 as SimdValue>::Element
Extracts the i-th lane of
self
. Read more§unsafe fn extract_unchecked(&self, _: usize) -> <u32 as SimdValue>::Element
unsafe fn extract_unchecked(&self, _: usize) -> <u32 as SimdValue>::Element
Extracts the i-th lane of
self
without bound-checking.§unsafe fn replace_unchecked(
&mut self,
_: usize,
val: <u32 as SimdValue>::Element
)
unsafe fn replace_unchecked( &mut self, _: usize, val: <u32 as SimdValue>::Element )
Replaces the i-th lane of
self
by val
without bound-checking.§impl<N2> SubsetOf<AutoSimd<N2>> for u32where
AutoSimd<N2>: SimdValue + Copy,
<AutoSimd<N2> as SimdValue>::Element: SupersetOf<u32> + PartialEq<<AutoSimd<N2> as SimdValue>::Element>,
impl<N2> SubsetOf<AutoSimd<N2>> for u32where AutoSimd<N2>: SimdValue + Copy, <AutoSimd<N2> as SimdValue>::Element: SupersetOf<u32> + PartialEq<<AutoSimd<N2> as SimdValue>::Element>,
§fn to_superset(&self) -> AutoSimd<N2>
fn to_superset(&self) -> AutoSimd<N2>
The inclusion map: converts
self
to the equivalent element of its superset.§fn from_superset_unchecked(element: &AutoSimd<N2>) -> u32
fn from_superset_unchecked(element: &AutoSimd<N2>) -> u32
Use with care! Same as
self.to_superset
but without any property checks. Always succeeds.§fn is_in_subset(c: &AutoSimd<N2>) -> bool
fn is_in_subset(c: &AutoSimd<N2>) -> bool
Checks if
element
is actually part of the subset Self
(and can be converted to it).§fn from_superset(element: &T) -> Option<Self>
fn from_superset(element: &T) -> Option<Self>
The inverse inclusion map: attempts to construct
self
from the equivalent element of its
superset. Read more§impl<N2> SubsetOf<Complex<N2>> for u32where
N2: Zero + SupersetOf<u32>,
impl<N2> SubsetOf<Complex<N2>> for u32where N2: Zero + SupersetOf<u32>,
§fn to_superset(&self) -> Complex<N2>
fn to_superset(&self) -> Complex<N2>
The inclusion map: converts
self
to the equivalent element of its superset.§fn from_superset_unchecked(element: &Complex<N2>) -> u32
fn from_superset_unchecked(element: &Complex<N2>) -> u32
Use with care! Same as
self.to_superset
but without any property checks. Always succeeds.§fn is_in_subset(c: &Complex<N2>) -> bool
fn is_in_subset(c: &Complex<N2>) -> bool
Checks if
element
is actually part of the subset Self
(and can be converted to it).§fn from_superset(element: &T) -> Option<Self>
fn from_superset(element: &T) -> Option<Self>
The inverse inclusion map: attempts to construct
self
from the equivalent element of its
superset. Read more§impl SubsetOf<WideF32x4> for u32
impl SubsetOf<WideF32x4> for u32
§fn to_superset(&self) -> WideF32x4
fn to_superset(&self) -> WideF32x4
The inclusion map: converts
self
to the equivalent element of its superset.§fn from_superset_unchecked(element: &WideF32x4) -> u32
fn from_superset_unchecked(element: &WideF32x4) -> u32
Use with care! Same as
self.to_superset
but without any property checks. Always succeeds.§fn is_in_subset(c: &WideF32x4) -> bool
fn is_in_subset(c: &WideF32x4) -> bool
Checks if
element
is actually part of the subset Self
(and can be converted to it).§fn from_superset(element: &T) -> Option<Self>
fn from_superset(element: &T) -> Option<Self>
The inverse inclusion map: attempts to construct
self
from the equivalent element of its
superset. Read more§impl SubsetOf<f32> for u32
impl SubsetOf<f32> for u32
§fn to_superset(&self) -> f32
fn to_superset(&self) -> f32
The inclusion map: converts
self
to the equivalent element of its superset.§fn from_superset_unchecked(element: &f32) -> u32
fn from_superset_unchecked(element: &f32) -> u32
Use with care! Same as
self.to_superset
but without any property checks. Always succeeds.§fn is_in_subset(_: &f32) -> bool
fn is_in_subset(_: &f32) -> bool
Checks if
element
is actually part of the subset Self
(and can be converted to it).§fn from_superset(element: &T) -> Option<Self>
fn from_superset(element: &T) -> Option<Self>
The inverse inclusion map: attempts to construct
self
from the equivalent element of its
superset. Read more§impl SubsetOf<f64> for u32
impl SubsetOf<f64> for u32
§fn to_superset(&self) -> f64
fn to_superset(&self) -> f64
The inclusion map: converts
self
to the equivalent element of its superset.§fn from_superset_unchecked(element: &f64) -> u32
fn from_superset_unchecked(element: &f64) -> u32
Use with care! Same as
self.to_superset
but without any property checks. Always succeeds.§fn is_in_subset(_: &f64) -> bool
fn is_in_subset(_: &f64) -> bool
Checks if
element
is actually part of the subset Self
(and can be converted to it).§fn from_superset(element: &T) -> Option<Self>
fn from_superset(element: &T) -> Option<Self>
The inverse inclusion map: attempts to construct
self
from the equivalent element of its
superset. Read more§impl SubsetOf<i128> for u32
impl SubsetOf<i128> for u32
§fn to_superset(&self) -> i128
fn to_superset(&self) -> i128
The inclusion map: converts
self
to the equivalent element of its superset.§fn from_superset_unchecked(element: &i128) -> u32
fn from_superset_unchecked(element: &i128) -> u32
Use with care! Same as
self.to_superset
but without any property checks. Always succeeds.§fn is_in_subset(_: &i128) -> bool
fn is_in_subset(_: &i128) -> bool
Checks if
element
is actually part of the subset Self
(and can be converted to it).§fn from_superset(element: &T) -> Option<Self>
fn from_superset(element: &T) -> Option<Self>
The inverse inclusion map: attempts to construct
self
from the equivalent element of its
superset. Read more§impl SubsetOf<i16> for u32
impl SubsetOf<i16> for u32
§fn to_superset(&self) -> i16
fn to_superset(&self) -> i16
The inclusion map: converts
self
to the equivalent element of its superset.§fn from_superset_unchecked(element: &i16) -> u32
fn from_superset_unchecked(element: &i16) -> u32
Use with care! Same as
self.to_superset
but without any property checks. Always succeeds.§fn is_in_subset(_: &i16) -> bool
fn is_in_subset(_: &i16) -> bool
Checks if
element
is actually part of the subset Self
(and can be converted to it).§fn from_superset(element: &T) -> Option<Self>
fn from_superset(element: &T) -> Option<Self>
The inverse inclusion map: attempts to construct
self
from the equivalent element of its
superset. Read more§impl SubsetOf<i32> for u32
impl SubsetOf<i32> for u32
§fn to_superset(&self) -> i32
fn to_superset(&self) -> i32
The inclusion map: converts
self
to the equivalent element of its superset.§fn from_superset_unchecked(element: &i32) -> u32
fn from_superset_unchecked(element: &i32) -> u32
Use with care! Same as
self.to_superset
but without any property checks. Always succeeds.§fn is_in_subset(_: &i32) -> bool
fn is_in_subset(_: &i32) -> bool
Checks if
element
is actually part of the subset Self
(and can be converted to it).§fn from_superset(element: &T) -> Option<Self>
fn from_superset(element: &T) -> Option<Self>
The inverse inclusion map: attempts to construct
self
from the equivalent element of its
superset. Read more§impl SubsetOf<i64> for u32
impl SubsetOf<i64> for u32
§fn to_superset(&self) -> i64
fn to_superset(&self) -> i64
The inclusion map: converts
self
to the equivalent element of its superset.§fn from_superset_unchecked(element: &i64) -> u32
fn from_superset_unchecked(element: &i64) -> u32
Use with care! Same as
self.to_superset
but without any property checks. Always succeeds.§fn is_in_subset(_: &i64) -> bool
fn is_in_subset(_: &i64) -> bool
Checks if
element
is actually part of the subset Self
(and can be converted to it).§fn from_superset(element: &T) -> Option<Self>
fn from_superset(element: &T) -> Option<Self>
The inverse inclusion map: attempts to construct
self
from the equivalent element of its
superset. Read more§impl SubsetOf<i8> for u32
impl SubsetOf<i8> for u32
§fn to_superset(&self) -> i8
fn to_superset(&self) -> i8
The inclusion map: converts
self
to the equivalent element of its superset.§fn from_superset_unchecked(element: &i8) -> u32
fn from_superset_unchecked(element: &i8) -> u32
Use with care! Same as
self.to_superset
but without any property checks. Always succeeds.§fn is_in_subset(_: &i8) -> bool
fn is_in_subset(_: &i8) -> bool
Checks if
element
is actually part of the subset Self
(and can be converted to it).§fn from_superset(element: &T) -> Option<Self>
fn from_superset(element: &T) -> Option<Self>
The inverse inclusion map: attempts to construct
self
from the equivalent element of its
superset. Read more§impl SubsetOf<isize> for u32
impl SubsetOf<isize> for u32
§fn to_superset(&self) -> isize
fn to_superset(&self) -> isize
The inclusion map: converts
self
to the equivalent element of its superset.§fn from_superset_unchecked(element: &isize) -> u32
fn from_superset_unchecked(element: &isize) -> u32
Use with care! Same as
self.to_superset
but without any property checks. Always succeeds.§fn is_in_subset(_: &isize) -> bool
fn is_in_subset(_: &isize) -> bool
Checks if
element
is actually part of the subset Self
(and can be converted to it).§fn from_superset(element: &T) -> Option<Self>
fn from_superset(element: &T) -> Option<Self>
The inverse inclusion map: attempts to construct
self
from the equivalent element of its
superset. Read more§impl SubsetOf<u128> for u32
impl SubsetOf<u128> for u32
§fn to_superset(&self) -> u128
fn to_superset(&self) -> u128
The inclusion map: converts
self
to the equivalent element of its superset.§fn from_superset_unchecked(element: &u128) -> u32
fn from_superset_unchecked(element: &u128) -> u32
Use with care! Same as
self.to_superset
but without any property checks. Always succeeds.§fn is_in_subset(_: &u128) -> bool
fn is_in_subset(_: &u128) -> bool
Checks if
element
is actually part of the subset Self
(and can be converted to it).§fn from_superset(element: &T) -> Option<Self>
fn from_superset(element: &T) -> Option<Self>
The inverse inclusion map: attempts to construct
self
from the equivalent element of its
superset. Read more§impl SubsetOf<u16> for u32
impl SubsetOf<u16> for u32
§fn to_superset(&self) -> u16
fn to_superset(&self) -> u16
The inclusion map: converts
self
to the equivalent element of its superset.§fn from_superset_unchecked(element: &u16) -> u32
fn from_superset_unchecked(element: &u16) -> u32
Use with care! Same as
self.to_superset
but without any property checks. Always succeeds.§fn is_in_subset(_: &u16) -> bool
fn is_in_subset(_: &u16) -> bool
Checks if
element
is actually part of the subset Self
(and can be converted to it).§fn from_superset(element: &T) -> Option<Self>
fn from_superset(element: &T) -> Option<Self>
The inverse inclusion map: attempts to construct
self
from the equivalent element of its
superset. Read more§impl SubsetOf<u32> for u32
impl SubsetOf<u32> for u32
§fn to_superset(&self) -> u32
fn to_superset(&self) -> u32
The inclusion map: converts
self
to the equivalent element of its superset.§fn from_superset_unchecked(element: &u32) -> u32
fn from_superset_unchecked(element: &u32) -> u32
Use with care! Same as
self.to_superset
but without any property checks. Always succeeds.§fn is_in_subset(_: &u32) -> bool
fn is_in_subset(_: &u32) -> bool
Checks if
element
is actually part of the subset Self
(and can be converted to it).§fn from_superset(element: &T) -> Option<Self>
fn from_superset(element: &T) -> Option<Self>
The inverse inclusion map: attempts to construct
self
from the equivalent element of its
superset. Read more§impl SubsetOf<u64> for u32
impl SubsetOf<u64> for u32
§fn to_superset(&self) -> u64
fn to_superset(&self) -> u64
The inclusion map: converts
self
to the equivalent element of its superset.§fn from_superset_unchecked(element: &u64) -> u32
fn from_superset_unchecked(element: &u64) -> u32
Use with care! Same as
self.to_superset
but without any property checks. Always succeeds.§fn is_in_subset(_: &u64) -> bool
fn is_in_subset(_: &u64) -> bool
Checks if
element
is actually part of the subset Self
(and can be converted to it).§fn from_superset(element: &T) -> Option<Self>
fn from_superset(element: &T) -> Option<Self>
The inverse inclusion map: attempts to construct
self
from the equivalent element of its
superset. Read more§impl SubsetOf<u8> for u32
impl SubsetOf<u8> for u32
§fn to_superset(&self) -> u8
fn to_superset(&self) -> u8
The inclusion map: converts
self
to the equivalent element of its superset.§fn from_superset_unchecked(element: &u8) -> u32
fn from_superset_unchecked(element: &u8) -> u32
Use with care! Same as
self.to_superset
but without any property checks. Always succeeds.§fn is_in_subset(_: &u8) -> bool
fn is_in_subset(_: &u8) -> bool
Checks if
element
is actually part of the subset Self
(and can be converted to it).§fn from_superset(element: &T) -> Option<Self>
fn from_superset(element: &T) -> Option<Self>
The inverse inclusion map: attempts to construct
self
from the equivalent element of its
superset. Read more§impl SubsetOf<usize> for u32
impl SubsetOf<usize> for u32
§fn to_superset(&self) -> usize
fn to_superset(&self) -> usize
The inclusion map: converts
self
to the equivalent element of its superset.§fn from_superset_unchecked(element: &usize) -> u32
fn from_superset_unchecked(element: &usize) -> u32
Use with care! Same as
self.to_superset
but without any property checks. Always succeeds.§fn is_in_subset(_: &usize) -> bool
fn is_in_subset(_: &usize) -> bool
Checks if
element
is actually part of the subset Self
(and can be converted to it).§fn from_superset(element: &T) -> Option<Self>
fn from_superset(element: &T) -> Option<Self>
The inverse inclusion map: attempts to construct
self
from the equivalent element of its
superset. Read more