pub struct GetHighlightOptsBuilder(/* private fields */);Implementations§
Source§impl GetHighlightOptsBuilder
impl GetHighlightOptsBuilder
Sourcepub fn create(&mut self, create: bool) -> &mut Self
pub fn create(&mut self, create: bool) -> &mut Self
When highlight group doesn’t exist create it (default is
Sourcepub fn link(&mut self, link: bool) -> &mut Self
pub fn link(&mut self, link: bool) -> &mut Self
Show linked group name instead of effective definition (default is
Sourcepub fn name<S: Into<String>>(&mut self, name: S) -> &mut Self
pub fn name<S: Into<String>>(&mut self, name: S) -> &mut Self
Get a highlight definition by name.
pub fn build(&mut self) -> GetHighlightOpts
Trait Implementations§
Source§impl Clone for GetHighlightOptsBuilder
impl Clone for GetHighlightOptsBuilder
Auto Trait Implementations§
impl Freeze for GetHighlightOptsBuilder
impl RefUnwindSafe for GetHighlightOptsBuilder
impl !Send for GetHighlightOptsBuilder
impl !Sync for GetHighlightOptsBuilder
impl Unpin for GetHighlightOptsBuilder
impl UnwindSafe for GetHighlightOptsBuilder
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoResult<T> for T
impl<T> IntoResult<T> for T
Source§type Error = Infallible
type Error = Infallible
The error type in the returned
Result.Source§fn into_result(self) -> Result<T, <T as IntoResult<T>>::Error>
fn into_result(self) -> Result<T, <T as IntoResult<T>>::Error>
Converts the value into a
Result.