pub struct CodeColorsBuilder(/* private fields */);Implementations§
Source§impl CodeColorsBuilder
impl CodeColorsBuilder
pub fn comment(self, c: Color) -> Self
pub fn keyword(self, c: Color) -> Self
pub fn string(self, c: Color) -> Self
pub fn string_escape(self, c: Color) -> Self
pub fn number(self, c: Color) -> Self
pub fn constant(self, c: Color) -> Self
pub fn function(self, c: Color) -> Self
pub fn type(self, c: Color) -> Self
pub fn variable(self, c: Color) -> Self
pub fn property(self, c: Color) -> Self
pub fn operator(self, c: Color) -> Self
pub fn punctuation(self, c: Color) -> Self
pub fn attribute(self, c: Color) -> Self
pub fn tag(self, c: Color) -> Self
pub fn label(self, c: Color) -> Self
pub fn error(self, c: Color) -> Self
pub fn build(self) -> CodeColors
Auto Trait Implementations§
impl Freeze for CodeColorsBuilder
impl RefUnwindSafe for CodeColorsBuilder
impl Send for CodeColorsBuilder
impl Sync for CodeColorsBuilder
impl Unpin for CodeColorsBuilder
impl UnsafeUnpin for CodeColorsBuilder
impl UnwindSafe for CodeColorsBuilder
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> 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