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>>;
}
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)

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§