Enum fere_resources::surface::EmissiveMaterial [−][src]
pub enum EmissiveMaterial<T: TypePack> { Plain(T::TexturePointer3, T::TexturePointer1), Video(T::VideoPointer, u8), AnimatedUniform(Vec<(IVec3, u8, u32)>), }
Variants
Plain(T::TexturePointer3, T::TexturePointer1)
Video(T::VideoPointer, u8)
[(color, intensity, duration)] where duration is given in game frame.
Implementations
Trait Implementations
impl<T: Debug + TypePack> Debug for EmissiveMaterial<T> where
T::TexturePointer3: Debug,
T::TexturePointer1: Debug,
T::VideoPointer: Debug,
impl<T: Debug + TypePack> Debug for EmissiveMaterial<T> where
T::TexturePointer3: Debug,
T::TexturePointer1: Debug,
T::VideoPointer: Debug,
Auto Trait Implementations
impl<T> RefUnwindSafe for EmissiveMaterial<T> where
<T as TypePack>::TexturePointer1: RefUnwindSafe,
<T as TypePack>::TexturePointer3: RefUnwindSafe,
<T as TypePack>::VideoPointer: RefUnwindSafe,
impl<T> Send for EmissiveMaterial<T> where
<T as TypePack>::TexturePointer1: Send,
<T as TypePack>::TexturePointer3: Send,
<T as TypePack>::VideoPointer: Send,
impl<T> Sync for EmissiveMaterial<T> where
<T as TypePack>::TexturePointer1: Sync,
<T as TypePack>::TexturePointer3: Sync,
<T as TypePack>::VideoPointer: Sync,
impl<T> Unpin for EmissiveMaterial<T> where
<T as TypePack>::TexturePointer1: Unpin,
<T as TypePack>::TexturePointer3: Unpin,
<T as TypePack>::VideoPointer: Unpin,
impl<T> UnwindSafe for EmissiveMaterial<T> where
<T as TypePack>::TexturePointer1: UnwindSafe,
<T as TypePack>::TexturePointer3: UnwindSafe,
<T as TypePack>::VideoPointer: UnwindSafe,
Blanket Implementations
Mutably borrows from an owned value. Read more
type Output = T
type Output = T
Should always be Self
The inverse inclusion map: attempts to construct self
from the equivalent element of its
superset. Read more
pub fn is_in_subset(&self) -> bool
pub fn is_in_subset(&self) -> bool
Checks if self
is actually part of its subset T
(and can be converted to it).
pub fn to_subset_unchecked(&self) -> SS
pub fn to_subset_unchecked(&self) -> SS
Use with care! Same as self.to_subset
but without any property checks. Always succeeds.
pub fn from_subset(element: &SS) -> SP
pub fn from_subset(element: &SS) -> SP
The inclusion map: converts self
to the equivalent element of its superset.