pub struct CloneStyleCommand {
pub source_style: String,
pub target_style: String,
pub description: Option<String>,
}Expand description
Command to clone an existing style with a new name
Fields§
§source_style: String§target_style: String§description: Option<String>Implementations§
Trait Implementations§
Source§impl Clone for CloneStyleCommand
impl Clone for CloneStyleCommand
Source§fn clone(&self) -> CloneStyleCommand
fn clone(&self) -> CloneStyleCommand
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 CloneStyleCommand
impl Debug for CloneStyleCommand
Source§impl EditorCommand for CloneStyleCommand
impl EditorCommand for CloneStyleCommand
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
Auto Trait Implementations§
impl Freeze for CloneStyleCommand
impl RefUnwindSafe for CloneStyleCommand
impl Send for CloneStyleCommand
impl Sync for CloneStyleCommand
impl Unpin for CloneStyleCommand
impl UnsafeUnpin for CloneStyleCommand
impl UnwindSafe for CloneStyleCommand
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