pub trait FileOptionExtension: Default + Sealed {
// Required methods
fn extra_fields(&self) -> Option<&Arc<Vec<CustomExtraField>>>;
fn file_comment(&self) -> Option<&str>;
fn take_file_comment(&mut self) -> Option<Box<str>>;
// Provided method
fn validate_extra_fields(&self) -> bool { ... }
}Expand description
File options Extensions
Required Methods§
Sourcefn extra_fields(&self) -> Option<&Arc<Vec<CustomExtraField>>>
fn extra_fields(&self) -> Option<&Arc<Vec<CustomExtraField>>>
Extra Data
Sourcefn file_comment(&self) -> Option<&str>
fn file_comment(&self) -> Option<&str>
File Comment
Sourcefn take_file_comment(&mut self) -> Option<Box<str>>
fn take_file_comment(&mut self) -> Option<Box<str>>
Take File Comment (moves ownership)
Provided Methods§
Sourcefn validate_extra_fields(&self) -> bool
fn validate_extra_fields(&self) -> bool
Whether to check the extra fields with the reader’s parser before writing
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".