pub struct StyleOps<'a> { /* private fields */ }Expand description
Fluent API builder for style operations
Implementations§
Source§impl<'a> StyleOps<'a>
impl<'a> StyleOps<'a>
Sourcepub fn create(
self,
name: &str,
builder: StyleBuilder,
) -> Result<&'a mut EditorDocument>
pub fn create( self, name: &str, builder: StyleBuilder, ) -> Result<&'a mut EditorDocument>
Create a new style
Sourcepub fn edit(self, name: &str) -> StyleEditor<'a>
pub fn edit(self, name: &str) -> StyleEditor<'a>
Edit an existing style
Sourcepub fn delete(self, name: &str) -> Result<&'a mut EditorDocument>
pub fn delete(self, name: &str) -> Result<&'a mut EditorDocument>
Delete a style
Sourcepub fn apply(self, old_style: &str, new_style: &str) -> StyleApplicator<'a>
pub fn apply(self, old_style: &str, new_style: &str) -> StyleApplicator<'a>
Apply a style to events
Auto Trait Implementations§
impl<'a> Freeze for StyleOps<'a>
impl<'a> !RefUnwindSafe for StyleOps<'a>
impl<'a> Send for StyleOps<'a>
impl<'a> !Sync for StyleOps<'a>
impl<'a> Unpin for StyleOps<'a>
impl<'a> !UnwindSafe for StyleOps<'a>
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