pub struct ClearGraphicsCommand;Expand description
Command to clear all embedded graphics from the ASS document
Removes the entire [Graphics] section if it exists.
Implementations§
Trait Implementations§
Source§impl Clone for ClearGraphicsCommand
impl Clone for ClearGraphicsCommand
Source§fn clone(&self) -> ClearGraphicsCommand
fn clone(&self) -> ClearGraphicsCommand
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 ClearGraphicsCommand
impl Debug for ClearGraphicsCommand
Source§impl Default for ClearGraphicsCommand
impl Default for ClearGraphicsCommand
Source§impl EditorCommand for ClearGraphicsCommand
impl EditorCommand for ClearGraphicsCommand
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 ClearGraphicsCommand
Source§impl PartialEq for ClearGraphicsCommand
impl PartialEq for ClearGraphicsCommand
Source§fn eq(&self, other: &ClearGraphicsCommand) -> bool
fn eq(&self, other: &ClearGraphicsCommand) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for ClearGraphicsCommand
Auto Trait Implementations§
impl Freeze for ClearGraphicsCommand
impl RefUnwindSafe for ClearGraphicsCommand
impl Send for ClearGraphicsCommand
impl Sync for ClearGraphicsCommand
impl Unpin for ClearGraphicsCommand
impl UnsafeUnpin for ClearGraphicsCommand
impl UnwindSafe for ClearGraphicsCommand
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