pub struct WavefrontObj<Index, Real> {
pub vtx2xyz: Vec<Real>,
pub vtx2uv: Vec<Real>,
pub vtx2nrm: Vec<Real>,
pub elem2idx: Vec<Index>,
pub idx2vtx_xyz: Vec<Index>,
pub idx2vtx_uv: Vec<Index>,
pub idx2vtx_nrm: Vec<Index>,
pub elem2group: Vec<Index>,
pub group2name: Vec<String>,
pub elem2mtl: Vec<Index>,
pub mtl_file_name: String,
pub mtl2name: Vec<String>,
}Fields§
§vtx2xyz: Vec<Real>§vtx2uv: Vec<Real>§vtx2nrm: Vec<Real>§elem2idx: Vec<Index>§idx2vtx_xyz: Vec<Index>§idx2vtx_uv: Vec<Index>§idx2vtx_nrm: Vec<Index>§elem2group: Vec<Index>§group2name: Vec<String>§elem2mtl: Vec<Index>§mtl_file_name: String§mtl2name: Vec<String>Implementations§
Source§impl<Index, Real> WavefrontObj<Index, Real>where
Real: FromStr + Display + Copy + Zero,
Index: PrimInt + 'static + AddAssign + AsPrimitive<usize> + Copy,
usize: AsPrimitive<Index>,
i32: AsPrimitive<Index>,
impl<Index, Real> WavefrontObj<Index, Real>where
Real: FromStr + Display + Copy + Zero,
Index: PrimInt + 'static + AddAssign + AsPrimitive<usize> + Copy,
usize: AsPrimitive<Index>,
i32: AsPrimitive<Index>,
Trait Implementations§
Source§impl<Index, Real> Default for WavefrontObj<Index, Real>where
Real: FromStr + Display + Copy + Zero,
Index: PrimInt + 'static + AddAssign + AsPrimitive<usize> + Copy,
usize: AsPrimitive<Index>,
i32: AsPrimitive<Index>,
impl<Index, Real> Default for WavefrontObj<Index, Real>where
Real: FromStr + Display + Copy + Zero,
Index: PrimInt + 'static + AddAssign + AsPrimitive<usize> + Copy,
usize: AsPrimitive<Index>,
i32: AsPrimitive<Index>,
Auto Trait Implementations§
impl<Index, Real> Freeze for WavefrontObj<Index, Real>
impl<Index, Real> RefUnwindSafe for WavefrontObj<Index, Real>where
Real: RefUnwindSafe,
Index: RefUnwindSafe,
impl<Index, Real> Send for WavefrontObj<Index, Real>
impl<Index, Real> Sync for WavefrontObj<Index, Real>
impl<Index, Real> Unpin for WavefrontObj<Index, Real>
impl<Index, Real> UnsafeUnpin for WavefrontObj<Index, Real>
impl<Index, Real> UnwindSafe for WavefrontObj<Index, Real>where
Real: UnwindSafe,
Index: UnwindSafe,
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> 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