pub struct StyleApplicator<'a> { /* private fields */ }Expand description
Fluent API builder for applying styles to events
Implementations§
Source§impl<'a> StyleApplicator<'a>
impl<'a> StyleApplicator<'a>
Sourcepub fn with_filter(self, filter: &str) -> Self
pub fn with_filter(self, filter: &str) -> Self
Only apply to events containing specific text
Sourcepub fn apply(self) -> Result<&'a mut EditorDocument>
pub fn apply(self) -> Result<&'a mut EditorDocument>
Apply the style changes
Auto Trait Implementations§
impl<'a> Freeze for StyleApplicator<'a>
impl<'a> !RefUnwindSafe for StyleApplicator<'a>
impl<'a> Send for StyleApplicator<'a>
impl<'a> !Sync for StyleApplicator<'a>
impl<'a> Unpin for StyleApplicator<'a>
impl<'a> !UnwindSafe for StyleApplicator<'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