pub enum PrintMode {
Normal,
Verbose,
}
Expand description
Modes defining how the output shall be printed
Requires
cli
feature
Variants
Normal
Verbose
Implementations
sourceimpl PrintMode
impl PrintMode
sourcepub fn print(self, result: &[Match])
pub fn print(self, result: &[Match])
Print Vec<Match>
in a tabular form.
Use this if you want to print the possible identification in terminal with a pretty table.
PrintMode::Normal
will print “Matched text”, “Identified as” and “Description” columns.PrintMode::Verbose
will print “Rarity” and “Tags” along with other columns.
Arguments
- result:
&Match
- Reference toVec<Match>
.
Examples
use lemmeknow::{Identifier, PrintMode};
let identifier = Identifier::default();
let result = identifier.identify("UC11L3JDgDQMyH8iolKkVZ4w");
let printer = PrintMode::Verbose;
printer.print(&result);
Auto Trait Implementations
impl RefUnwindSafe for PrintMode
impl Send for PrintMode
impl Sync for PrintMode
impl Unpin for PrintMode
impl UnwindSafe for PrintMode
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more