pub struct ColorHexView<'a> {
pub builder: HexViewBuilder<'a>,
pub color_start: usize,
}
Fields§
§builder: HexViewBuilder<'a>
§color_start: usize
Implementations§
Source§impl<'a> ColorHexView<'a>
impl<'a> ColorHexView<'a>
pub fn new( builder: HexViewBuilder<'a>, colors: Vec<(&'a str, usize)>, ) -> ColorHexView<'a>
pub fn add_colors(self, colors: Vec<(&'a str, usize)>) -> ColorHexView<'a>
pub fn add_colors_with_range( self, colors: Vec<(&'a str, Range<usize>)>, ) -> ColorHexView<'a>
pub fn try_print(self) -> Result<(), String>
Auto Trait Implementations§
impl<'a> Freeze for ColorHexView<'a>
impl<'a> RefUnwindSafe for ColorHexView<'a>
impl<'a> Send for ColorHexView<'a>
impl<'a> Sync for ColorHexView<'a>
impl<'a> Unpin for ColorHexView<'a>
impl<'a> UnwindSafe for ColorHexView<'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