[−][src]Struct gltf_json::mesh::Primitive
Geometry to be rendered with the given material.
Fields
attributes: HashMap<Checked<Semantic>, Index<Accessor>>
Maps attribute semantic names to the Accessor
s containing the
corresponding attribute data.
extensions: Option<Primitive>
Extension specific data.
extras: Extras
Optional application specific data.
indices: Option<Index<Accessor>>
The index of the accessor that contains the indices.
material: Option<Index<Material>>
The index of the material to apply to this primitive when rendering
mode: Checked<Mode>
The type of primitives to render.
targets: Option<Vec<MorphTarget>>
An array of Morph Targets, each Morph Target is a dictionary mapping
attributes (only POSITION
, NORMAL
, and TANGENT
supported) to their
deviations in the Morph Target.
Trait Implementations
impl Validate for Primitive
[src]
fn validate<P, R>(&self, root: &Root, path: P, report: &mut R) where
P: Fn() -> Path,
R: FnMut(&dyn Fn() -> Path, Error),
[src]
P: Fn() -> Path,
R: FnMut(&dyn Fn() -> Path, Error),
impl Clone for Primitive
[src]
fn clone(&self) -> Primitive
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl Debug for Primitive
[src]
impl Serialize for Primitive
[src]
fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error> where
__S: Serializer,
[src]
__S: Serializer,
impl<'de> Deserialize<'de> for Primitive
[src]
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
[src]
__D: Deserializer<'de>,
Auto Trait Implementations
impl Sync for Primitive
impl Send for Primitive
impl Unpin for Primitive
impl RefUnwindSafe for Primitive
impl UnwindSafe for Primitive
Blanket Implementations
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> DeserializeOwned for T where
T: Deserialize<'de>,
[src]
T: Deserialize<'de>,