pub struct GetHighlightOptsBuilder(/* private fields */);Implementations§
Source§impl GetHighlightOptsBuilder
impl GetHighlightOptsBuilder
Sourcepub fn create(&mut self, create: bool) -> &mut GetHighlightOptsBuilder
pub fn create(&mut self, create: bool) -> &mut GetHighlightOptsBuilder
When highlight group doesn’t exist create it (default is
Sourcepub fn id(&mut self, id: u32) -> &mut GetHighlightOptsBuilder
pub fn id(&mut self, id: u32) -> &mut GetHighlightOptsBuilder
Get a highlight definition by id.
Sourcepub fn link(&mut self, link: bool) -> &mut GetHighlightOptsBuilder
pub fn link(&mut self, link: bool) -> &mut GetHighlightOptsBuilder
Show linked group name instead of effective definition (default is
Sourcepub fn name<S>(&mut self, name: S) -> &mut GetHighlightOptsBuilder
pub fn name<S>(&mut self, name: S) -> &mut GetHighlightOptsBuilder
Get a highlight definition by name.
pub fn build(&mut self) -> GetHighlightOpts
Trait Implementations§
Source§impl Clone for GetHighlightOptsBuilder
impl Clone for GetHighlightOptsBuilder
Source§fn clone(&self) -> GetHighlightOptsBuilder
fn clone(&self) -> GetHighlightOptsBuilder
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 Default for GetHighlightOptsBuilder
impl Default for GetHighlightOptsBuilder
Source§fn default() -> GetHighlightOptsBuilder
fn default() -> GetHighlightOptsBuilder
Returns the “default value” for a type. Read more
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> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§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.