pub struct AttributeInfo {
pub scalars: Option<String>,
pub vectors: Option<String>,
pub normals: Option<String>,
pub tensors: Option<String>,
pub tcoords: Option<String>,
}
Fields§
§scalars: Option<String>
§vectors: Option<String>
§normals: Option<String>
§tensors: Option<String>
§tcoords: Option<String>
Implementations§
Source§impl AttributeInfo
impl AttributeInfo
Sourcepub fn element_type(&self, name: &str, num_comp: u32) -> ElementType
pub fn element_type(&self, name: &str, num_comp: u32) -> ElementType
Determine an appropriate model::ElementType
for the given attribute name and number of components.
Trait Implementations§
Source§impl Clone for AttributeInfo
impl Clone for AttributeInfo
Source§fn clone(&self) -> AttributeInfo
fn clone(&self) -> AttributeInfo
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 AttributeInfo
impl Debug for AttributeInfo
Source§impl Default for AttributeInfo
impl Default for AttributeInfo
Source§fn default() -> AttributeInfo
fn default() -> AttributeInfo
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for AttributeInfo
impl<'de> Deserialize<'de> for AttributeInfo
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for AttributeInfo
impl PartialEq for AttributeInfo
Source§impl Serialize for AttributeInfo
impl Serialize for AttributeInfo
impl StructuralPartialEq for AttributeInfo
Auto Trait Implementations§
impl Freeze for AttributeInfo
impl RefUnwindSafe for AttributeInfo
impl Send for AttributeInfo
impl Sync for AttributeInfo
impl Unpin for AttributeInfo
impl UnwindSafe for AttributeInfo
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