Skip to main content

FileOptionExtension

Trait FileOptionExtension 

Source
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§

Source

fn extra_fields(&self) -> Option<&Arc<Vec<CustomExtraField>>>

Extra Data

Source

fn file_comment(&self) -> Option<&str>

File Comment

Source

fn take_file_comment(&mut self) -> Option<Box<str>>

Take File Comment (moves ownership)

Provided Methods§

Source

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".

Implementors§