pub struct AddGraphicCommand {
pub filename: String,
pub data_lines: Vec<String>,
}Expand description
Command to add an embedded graphic to the ASS document
Graphics are embedded using UU-encoding in the [Graphics] section.
This command supports both pre-encoded data and raw binary data.
Fields§
§filename: StringGraphic filename
data_lines: Vec<String>UU-encoded graphic data lines
Implementations§
Trait Implementations§
Source§impl Clone for AddGraphicCommand
impl Clone for AddGraphicCommand
Source§fn clone(&self) -> AddGraphicCommand
fn clone(&self) -> AddGraphicCommand
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 AddGraphicCommand
impl Debug for AddGraphicCommand
Source§impl EditorCommand for AddGraphicCommand
impl EditorCommand for AddGraphicCommand
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 AddGraphicCommand
Source§impl PartialEq for AddGraphicCommand
impl PartialEq for AddGraphicCommand
Source§fn eq(&self, other: &AddGraphicCommand) -> bool
fn eq(&self, other: &AddGraphicCommand) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for AddGraphicCommand
Auto Trait Implementations§
impl Freeze for AddGraphicCommand
impl RefUnwindSafe for AddGraphicCommand
impl Send for AddGraphicCommand
impl Sync for AddGraphicCommand
impl Unpin for AddGraphicCommand
impl UnsafeUnpin for AddGraphicCommand
impl UnwindSafe for AddGraphicCommand
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