pub struct SerializeOptions { /* private fields */ }Expand description
Options for PLY file serialization.
Builder struct for configuring PLY output format and metadata like comments.
Use the convenience methods like Self::ascii() for common configurations.
Implementations§
Source§impl SerializeOptions
impl SerializeOptions
Sourcepub fn new(format: PlyFormat) -> Self
pub fn new(format: PlyFormat) -> Self
Create a new SerializeOptions with the given format.
Sourcepub fn ascii() -> Self
pub fn ascii() -> Self
Default SerializeOptions for ASCII format.
Sourcepub fn binary_le() -> Self
pub fn binary_le() -> Self
Default SerializeOptions for binary (little-endian) format.
Sourcepub fn binary_be() -> Self
pub fn binary_be() -> Self
Default SerializeOptions for binary (big-endian) format.
Sourcepub fn with_comments(self, comments: Vec<String>) -> Self
pub fn with_comments(self, comments: Vec<String>) -> Self
Add comments to the PLY header.
Comments appear in the header section and are often used for metadata.
Sourcepub fn with_obj_info(self, obj_info: Vec<String>) -> Self
pub fn with_obj_info(self, obj_info: Vec<String>) -> Self
Add obj_info lines to the PLY header.
Similar to comments but may be treated differently by some PLY readers. Often used for application-specific metadata.
Auto Trait Implementations§
impl Freeze for SerializeOptions
impl RefUnwindSafe for SerializeOptions
impl Send for SerializeOptions
impl Sync for SerializeOptions
impl Unpin for SerializeOptions
impl UnwindSafe for SerializeOptions
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