pub enum UniformValueRef<'a> {
Show variants
Float(&'a f32),
I32(&'a i32),
U32(&'a u32),
Bool(&'a bool),
Vec2(&'a Vec2),
Vec3(&'a Vec3),
Vec4(&'a Vec4),
IVec2(&'a Vec2<i32>),
IVec3(&'a Vec3<i32>),
IVec4(&'a Vec4<i32>),
UVec2(&'a Vec2<u32>),
UVec3(&'a Vec3<u32>),
UVec4(&'a Vec4<u32>),
Rgb(&'a Rgb<f32, Srgb>),
Rgba(&'a Rgba<f32, Srgb>),
RgbLinear(&'a Rgb<f32, LinearRgb>),
RgbaLinear(&'a Rgba<f32, LinearRgb>),
Texture(&'a TextureSampler),
Cubemap(&'a CubemapSampler),
Rad(&'a Rad<f32>),
Deg(&'a Deg<f32>),
Mat4(&'a Mat4),
Mat3(&'a Mat3),
ArrayFloat(&'a Vec<f32>),
ArrayVec2(&'a Vec<Vec2>),
ArrayVec3(&'a Vec<Vec3>),
ArrayVec4(&'a Vec<Vec4>),
ArrayInt(&'a Vec<i32>),
ArrayIVec2(&'a Vec<Vec2<i32>>),
ArrayIVec3(&'a Vec<Vec3<i32>>),
ArrayIVec4(&'a Vec<Vec4<i32>>),
ArrayUInt(&'a Vec<u32>),
ArrayUVec2(&'a Vec<Vec2<u32>>),
ArrayUVec3(&'a Vec<Vec3<u32>>),
ArrayUVec4(&'a Vec<Vec4<u32>>),
OptionFloat(&'a Option<f32>),
OptionI32(&'a Option<i32>),
OptionU32(&'a Option<u32>),
OptionBool(&'a Option<bool>),
OptionVec2(&'a Option<Vec2>),
OptionVec3(&'a Option<Vec3>),
OptionVec4(&'a Option<Vec4>),
OptionIVec2(&'a Option<Vec2<i32>>),
OptionIVec3(&'a Option<Vec3<i32>>),
OptionIVec4(&'a Option<Vec4<i32>>),
OptionUVec2(&'a Option<Vec2<u32>>),
OptionUVec3(&'a Option<Vec3<u32>>),
OptionUVec4(&'a Option<Vec4<u32>>),
OptionRgb(&'a Option<Rgb<f32, Srgb>>),
OptionRgba(&'a Option<Rgba<f32, Srgb>>),
OptionRgbLinear(&'a Option<Rgb<f32, LinearRgb>>),
OptionRgbaLinear(&'a Option<Rgba<f32, LinearRgb>>),
OptionTexture(&'a Option<TextureSampler>),
OptionCubemap(&'a Option<CubemapSampler>),
OptionRad(&'a Option<Rad<f32>>),
OptionDeg(&'a Option<Deg<f32>>),
OptionMat4(&'a Option<Mat4>),
OptionMat3(&'a Option<Mat3>),
OptionArrayFloat(&'a Option<Vec<f32>>),
OptionArrayVec2(&'a Option<Vec<Vec2>>),
OptionArrayVec3(&'a Option<Vec<Vec3>>),
OptionArrayVec4(&'a Option<Vec<Vec4>>),
OptionArrayInt(&'a Option<Vec<i32>>),
OptionArrayIVec2(&'a Option<Vec<Vec2<i32>>>),
OptionArrayIVec3(&'a Option<Vec<Vec3<i32>>>),
OptionArrayIVec4(&'a Option<Vec<Vec4<i32>>>),
OptionArrayUInt(&'a Option<Vec<u32>>),
OptionArrayUVec2(&'a Option<Vec<Vec2<u32>>>),
OptionArrayUVec3(&'a Option<Vec<Vec3<u32>>>),
OptionArrayUVec4(&'a Option<Vec<Vec4<u32>>>),
}
Formats the value using the given formatter. Read more
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
This method tests for !=
.
impl<T> Any for T where
T: 'static + ?Sized,
[src]
impl<T> Any for T where
T: Any,
[src]
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more
impl<T, U> Into<U> for T where
U: From<T>,
[src]
The alignment of pointer.
type Init = T
The type for initializers.
Initializes a with the given initializer. Read more
Mutably dereferences the given pointer. Read more
Drops the object pointed to by the given pointer. Read more
Performance hack: Clone doesn’t get inlined for Copy types in debug mode, so make it inline anyway.
Tests if Self
the same as the type T
Read more
The inverse inclusion map: attempts to construct self
from the equivalent element of its
superset. Read more
Checks if self
is actually part of its subset T
(and can be converted to it).
Use with care! Same as self.to_subset
but without any property checks. Always succeeds.
The inclusion map: converts self
to the equivalent element of its superset.
The inverse inclusion map: attempts to construct self
from the equivalent element of its
superset. Read more
Checks if self
is actually part of its subset T
(and can be converted to it).
Use with care! Same as self.to_subset
but without any property checks. Always succeeds.
The inclusion map: converts self
to the equivalent element of its superset.
The resulting type after obtaining ownership.
Creates owned data from borrowed data, usually by cloning. Read more
🔬 This is a nightly-only experimental API. (toowned_clone_into
)
recently added
Uses borrowed data to replace owned data, usually by cloning. Read more
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
The type returned in the event of a conversion error.
The type returned in the event of a conversion error.