pub struct EditStyleCommand {
pub style_name: String,
pub field_updates: HashMap<String, String>,
pub description: Option<String>,
}Expand description
Command to edit an existing style
Fields§
§style_name: String§field_updates: HashMap<String, String>§description: Option<String>Implementations§
Source§impl EditStyleCommand
impl EditStyleCommand
Sourcepub fn set_italic(self, italic: bool) -> Self
pub fn set_italic(self, italic: bool) -> Self
Set italic
Sourcepub fn set_alignment(self, alignment: u32) -> Self
pub fn set_alignment(self, alignment: u32) -> Self
Set alignment
Sourcepub fn with_description(self, description: String) -> Self
pub fn with_description(self, description: String) -> Self
Set custom description
Trait Implementations§
Source§impl Clone for EditStyleCommand
impl Clone for EditStyleCommand
Source§fn clone(&self) -> EditStyleCommand
fn clone(&self) -> EditStyleCommand
Returns a duplicate of the value. Read more
1.0.0 · 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 EditStyleCommand
impl Debug for EditStyleCommand
Source§impl EditorCommand for EditStyleCommand
impl EditorCommand for EditStyleCommand
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 EditStyleCommand
impl RefUnwindSafe for EditStyleCommand
impl Send for EditStyleCommand
impl Sync for EditStyleCommand
impl Unpin for EditStyleCommand
impl UnwindSafe for EditStyleCommand
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