pub struct CompressionOptions {
pub encoding_speed: u8,
pub decoding_speed: u8,
pub mode: CompressionMode,
pub max_output_bytes: Option<usize>,
}Expand description
Controls document-preserving Draco compression.
CompressionMode::DracoOnly is the default: it requires the Draco
extension and removes raw geometry owned only by the compressed primitive.
Use CompressionMode::Fallback when non-Draco readers must retain the
original accessors.
let options = CompressionOptions {
mode: CompressionMode::Fallback,
..CompressionOptions::default()
};
assert_eq!(options.mode, CompressionMode::Fallback);Fields§
§encoding_speed: u8Draco encoder speed in the range accepted by draco-core.
decoding_speed: u8Draco decoder speed hint in the range accepted by draco-core.
mode: CompressionModeWhether output requires Draco or retains ordinary geometry as fallback.
max_output_bytes: Option<usize>Maximum number of resolved binary bytes permitted after compression. The limit includes retained fallback data and four-byte padding.
Trait Implementations§
Source§impl Clone for CompressionOptions
impl Clone for CompressionOptions
Source§fn clone(&self) -> CompressionOptions
fn clone(&self) -> CompressionOptions
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for CompressionOptions
Source§impl Debug for CompressionOptions
impl Debug for CompressionOptions
Auto Trait Implementations§
impl Freeze for CompressionOptions
impl RefUnwindSafe for CompressionOptions
impl Send for CompressionOptions
impl Sync for CompressionOptions
impl Unpin for CompressionOptions
impl UnsafeUnpin for CompressionOptions
impl UnwindSafe for CompressionOptions
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