[][src]Struct devout::Tag

pub struct Tag(_);

A tag to identify a log.

Implementations

impl Tag[src]

pub const fn new(ident: &'static str) -> Self[src]

Create a new tag by passing a textual identifier.

pub const fn hide(self) -> Self[src]

Hide logs using this tag.

pub const fn show(self, log: bool) -> Self[src]

Choose whether or not to show this tag based on a boolean value. true is show, and false is hide.

pub const fn is_shown(self) -> bool[src]

Returns true if logs using this tag are shown.

pub fn log(&self, args: Arguments<'_>)[src]

Print out a log message with this tag. Prefer log!() instead.

Trait Implementations

impl Clone for Tag[src]

impl Copy for Tag[src]

impl Debug for Tag[src]

Auto Trait Implementations

impl RefUnwindSafe for Tag

impl Send for Tag

impl Sync for Tag

impl Unpin for Tag

impl UnwindSafe for Tag

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.