pub struct AddFontCommand {
pub filename: String,
pub data_lines: Vec<String>,
}Expand description
Command to add an embedded font to the ASS document
Fonts are embedded using UU-encoding in the [Fonts] section.
This command supports both pre-encoded data and raw binary data.
Fields§
§filename: StringFont filename
data_lines: Vec<String>UU-encoded font data lines
Implementations§
Trait Implementations§
Source§impl Clone for AddFontCommand
impl Clone for AddFontCommand
Source§fn clone(&self) -> AddFontCommand
fn clone(&self) -> AddFontCommand
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 moreSource§impl Debug for AddFontCommand
impl Debug for AddFontCommand
Source§impl EditorCommand for AddFontCommand
impl EditorCommand for AddFontCommand
Source§fn execute(&self, document: &mut EditorDocument) -> Result<CommandResult>
fn execute(&self, document: &mut EditorDocument) -> Result<CommandResult>
Execute the command on the given document Read more
Source§fn description(&self) -> &str
fn description(&self) -> &str
Get a human-readable description of the command
Source§fn memory_usage(&self) -> usize
fn memory_usage(&self) -> usize
Get the estimated memory usage of this command Read more
Source§fn modifies_content(&self) -> bool
fn modifies_content(&self) -> bool
Check if this command modifies document content Read more
impl Eq for AddFontCommand
Source§impl PartialEq for AddFontCommand
impl PartialEq for AddFontCommand
Source§fn eq(&self, other: &AddFontCommand) -> bool
fn eq(&self, other: &AddFontCommand) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for AddFontCommand
Auto Trait Implementations§
impl Freeze for AddFontCommand
impl RefUnwindSafe for AddFontCommand
impl Send for AddFontCommand
impl Sync for AddFontCommand
impl Unpin for AddFontCommand
impl UnsafeUnpin for AddFontCommand
impl UnwindSafe for AddFontCommand
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