pub struct StdPrinter { /* private fields */ }Expand description
A structure of standard printer.
The standard printer prints messages to the standard output.
Implementations§
Source§impl StdPrinter
impl StdPrinter
Trait Implementations§
Source§impl Debug for StdPrinter
impl Debug for StdPrinter
Source§impl Print for StdPrinter
impl Print for StdPrinter
Source§fn print_loading(&self, is_done: bool)
fn print_loading(&self, is_done: bool)
Prints the “Loading tests …” message.
Source§fn print_running_test(
&self,
idents: &Vec<String>,
ident: &String,
is_done: bool,
is_ok: bool,
)
fn print_running_test( &self, idents: &Vec<String>, ident: &String, is_done: bool, is_ok: bool, )
Prints the test running with the test identifier. Read more
Source§fn print_empty_line(&self)
fn print_empty_line(&self)
Prints an empty line.
Source§fn print_successes(&self)
fn print_successes(&self)
Prints the “Successes:” message.
Source§fn print_failures(&self)
fn print_failures(&self)
Prints the “Failures:” message.
Source§fn print_test_result(
&self,
idents: &Vec<String>,
ident: &String,
test_result: &TestResult,
) -> Result<()>
fn print_test_result( &self, idents: &Vec<String>, ident: &String, test_result: &TestResult, ) -> Result<()>
Prints the test result with data from the standard output and the standard error.
Source§fn print_test_counts(&self, passed_test_count: usize, failed_test_count: usize)
fn print_test_counts(&self, passed_test_count: usize, failed_test_count: usize)
Prints the number of passed tests and the number of failed tests.
Source§fn print_lf_for_error(&self)
fn print_lf_for_error(&self)
Prints the newline character for an occurred error.
Auto Trait Implementations§
impl !Freeze for StdPrinter
impl RefUnwindSafe for StdPrinter
impl Send for StdPrinter
impl Sync for StdPrinter
impl Unpin for StdPrinter
impl UnsafeUnpin for StdPrinter
impl UnwindSafe for StdPrinter
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
Source§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Convert
Box<dyn Trait> (where Trait: Downcast) to Box<dyn Any>. Box<dyn Any> can
then be further downcast into Box<ConcreteType> where ConcreteType implements Trait.Source§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Convert
Rc<Trait> (where Trait: Downcast) to Rc<Any>. Rc<Any> can then be
further downcast into Rc<ConcreteType> where ConcreteType implements Trait.Source§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
Convert
&Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &Any’s vtable from &Trait’s.Source§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
Convert
&mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &mut Any’s vtable from &mut Trait’s.