pub struct Header {
pub encoding: Encoding,
pub version: Version,
pub obj_infos: Vec<ObjInfo>,
pub elements: KeyMap<ElementDef>,
pub comments: Vec<Comment>,
}
Expand description
Models the header of a PLY file.
Fields§
§encoding: Encoding
In which format is the payload encoded?
Ascii produces human readable files, while binary encoding lets you choose between big and little endian.
version: Version
Which file format standard is used?
The only existing standard is 1.0.
obj_infos: Vec<ObjInfo>
§elements: KeyMap<ElementDef>
Ordered map of elements as they appear in the payload.
comments: Vec<Comment>
File comments.
Implementations§
Trait Implementations§
impl Eq for Header
impl StructuralPartialEq for Header
Auto Trait Implementations§
impl Freeze for Header
impl RefUnwindSafe for Header
impl Send for Header
impl Sync for Header
impl Unpin for Header
impl UnwindSafe for Header
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§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)