pub struct AnsiWriter<'a> { /* private fields */ }Expand description
Holds all information necessary to visualize annotations as text with ANSI escape codes, for terminal output
Implementations§
Source§impl<'a> AnsiWriter<'a>
impl<'a> AnsiWriter<'a>
Sourcepub fn new(
store: &'a AnnotationStore,
query: Query<'a>,
selectionvar: Option<&'a str>,
) -> Result<Self, String>
pub fn new( store: &'a AnnotationStore, query: Query<'a>, selectionvar: Option<&'a str>, ) -> Result<Self, String>
Instantiates an AnsiWriter, uses a builder pattern via the with*() methods
to assign data.
pub fn with_highlight(self, highlight: Highlight<'a>) -> Self
pub fn with_legend(self, value: bool) -> Self
pub fn with_titles(self, value: bool) -> Self
pub fn with_selectionvar(self, var: &'a str) -> Self
Auto Trait Implementations§
impl<'a> Freeze for AnsiWriter<'a>
impl<'a> RefUnwindSafe for AnsiWriter<'a>
impl<'a> Send for AnsiWriter<'a>
impl<'a> Sync for AnsiWriter<'a>
impl<'a> Unpin for AnsiWriter<'a>
impl<'a> UnsafeUnpin for AnsiWriter<'a>
impl<'a> UnwindSafe for AnsiWriter<'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
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