pub struct SearchCtxBuilder { /* private fields */ }Expand description
Search context builder
Implementations§
Source§impl SearchCtxBuilder
impl SearchCtxBuilder
Sourcepub fn new<S>(pattern: S) -> Self
pub fn new<S>(pattern: S) -> Self
Creates a new SearchCtxBuilder
§Arguments
pattern- The pattern to search for
§Returns
A new SearchCtxBuilder
Sourcepub fn color<C>(self, color: C) -> Self
pub fn color<C>(self, color: C) -> Self
Sets the color to use for highlighting
§Arguments
color- The color to use (white is considered no color)
§Returns
A new SearchCtxBuilder
Sourcepub fn pattern<S>(self, pattern: S) -> Self
pub fn pattern<S>(self, pattern: S) -> Self
Sets the pattern to search for
§Arguments
pattern- The pattern to search for
§Returns
A new SearchCtxBuilder
Trait Implementations§
Source§impl Clone for SearchCtxBuilder
impl Clone for SearchCtxBuilder
Source§fn clone(&self) -> SearchCtxBuilder
fn clone(&self) -> SearchCtxBuilder
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 moreAuto Trait Implementations§
impl Freeze for SearchCtxBuilder
impl RefUnwindSafe for SearchCtxBuilder
impl Send for SearchCtxBuilder
impl Sync for SearchCtxBuilder
impl Unpin for SearchCtxBuilder
impl UnsafeUnpin for SearchCtxBuilder
impl UnwindSafe for SearchCtxBuilder
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 more