pub enum AttributeType {
Position,
Normal,
Color,
TextureCoordinate,
Custom,
Tangent,
Material,
Joint,
Weight,
Invalid,
}Variants§
Implementations§
Source§impl AttributeType
impl AttributeType
pub fn get_minimum_dependency(&self) -> Vec<Self>
Sourcepub fn write_to<W: ByteWriter>(&self, writer: &mut W)
pub fn write_to<W: ByteWriter>(&self, writer: &mut W)
Returns the id of the attribute type.
Sourcepub fn read_from<R: ByteReader>(reader: &mut R) -> Result<Self, Err>
pub fn read_from<R: ByteReader>(reader: &mut R) -> Result<Self, Err>
Reads the attribute type from the reader.
Trait Implementations§
Source§impl Clone for AttributeType
impl Clone for AttributeType
Source§fn clone(&self) -> AttributeType
fn clone(&self) -> AttributeType
Returns a duplicate 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 Debug for AttributeType
impl Debug for AttributeType
Source§impl Hash for AttributeType
impl Hash for AttributeType
Source§impl PartialEq for AttributeType
impl PartialEq for AttributeType
Source§impl Serialize for AttributeType
impl Serialize for AttributeType
impl Copy for AttributeType
impl Eq for AttributeType
impl StructuralPartialEq for AttributeType
Auto Trait Implementations§
impl Freeze for AttributeType
impl RefUnwindSafe for AttributeType
impl Send for AttributeType
impl Sync for AttributeType
impl Unpin for AttributeType
impl UnwindSafe for AttributeType
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§impl<T> DistributionExt for Twhere
T: ?Sized,
impl<T> DistributionExt for Twhere
T: ?Sized,
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