pub struct Logger<'a, Method: ?Sized, Prompt: ?Sized, Program: ?Sized, Arguments: ?Sized> {
pub method: &'a Method,
pub prompt: &'a Prompt,
pub program: &'a Program,
pub arguments: &'a Arguments,
}
Fields§
§method: &'a Method
§prompt: &'a Prompt
§program: &'a Program
§arguments: &'a Arguments
Implementations§
Source§impl<'a, Method: ?Sized, Prompt: ?Sized, Program: ?Sized, Arguments: ?Sized> Logger<'a, Method, Prompt, Program, Arguments>
impl<'a, Method: ?Sized, Prompt: ?Sized, Program: ?Sized, Arguments: ?Sized> Logger<'a, Method, Prompt, Program, Arguments>
pub fn new( method: &'a Method, prompt: &'a Prompt, program: &'a Program, arguments: &'a Arguments, ) -> Self
Trait Implementations§
Source§impl<'a, Prompt: ?Sized, Program: ?Sized, Arguments: ?Sized> Display for Logger<'a, GroupClosing, Prompt, Program, Arguments>
impl<'a, Prompt: ?Sized, Program: ?Sized, Arguments: ?Sized> Display for Logger<'a, GroupClosing, Prompt, Program, Arguments>
Source§impl<'a, Fmt, Prompt: ?Sized, Program: ?Sized, Arguments: ?Sized> Display for Logger<'a, GroupOpening<Fmt>, Prompt, Program, Arguments>
impl<'a, Fmt, Prompt: ?Sized, Program: ?Sized, Arguments: ?Sized> Display for Logger<'a, GroupOpening<Fmt>, Prompt, Program, Arguments>
Source§impl<'a, Prompt: ?Sized, Program: ?Sized, Arguments: ?Sized> Display for Logger<'a, SyntaxHighLight, Prompt, Program, Arguments>where
&'a Prompt: AsRef<str>,
&'a Program: AsRef<OsStr>,
&'a Arguments: IntoIterator,
<&'a Arguments as IntoIterator>::Item: AsRef<OsStr>,
impl<'a, Prompt: ?Sized, Program: ?Sized, Arguments: ?Sized> Display for Logger<'a, SyntaxHighLight, Prompt, Program, Arguments>where
&'a Prompt: AsRef<str>,
&'a Program: AsRef<OsStr>,
&'a Arguments: IntoIterator,
<&'a Arguments as IntoIterator>::Item: AsRef<OsStr>,
Source§impl<'a, Prompt: ?Sized, Program: ?Sized, Arguments: ?Sized> Log for Logger<'a, GroupClosing, Prompt, Program, Arguments>
impl<'a, Prompt: ?Sized, Program: ?Sized, Arguments: ?Sized> Log for Logger<'a, GroupClosing, Prompt, Program, Arguments>
Source§impl<'a, Fmt, Prompt: ?Sized, Program: ?Sized, Arguments: ?Sized> Log for Logger<'a, GroupOpening<Fmt>, Prompt, Program, Arguments>
impl<'a, Fmt, Prompt: ?Sized, Program: ?Sized, Arguments: ?Sized> Log for Logger<'a, GroupOpening<Fmt>, Prompt, Program, Arguments>
Source§impl<'a, Prompt: ?Sized, Program: ?Sized, Arguments: ?Sized> Log for Logger<'a, Nothing, Prompt, Program, Arguments>
impl<'a, Prompt: ?Sized, Program: ?Sized, Arguments: ?Sized> Log for Logger<'a, Nothing, Prompt, Program, Arguments>
Source§impl<'a, Prompt: ?Sized, Program: ?Sized, Arguments: ?Sized> Log for Logger<'a, SyntaxHighLight, Prompt, Program, Arguments>where
&'a Prompt: AsRef<str>,
&'a Program: AsRef<OsStr>,
&'a Arguments: IntoIterator,
<&'a Arguments as IntoIterator>::Item: AsRef<OsStr>,
impl<'a, Prompt: ?Sized, Program: ?Sized, Arguments: ?Sized> Log for Logger<'a, SyntaxHighLight, Prompt, Program, Arguments>where
&'a Prompt: AsRef<str>,
&'a Program: AsRef<OsStr>,
&'a Arguments: IntoIterator,
<&'a Arguments as IntoIterator>::Item: AsRef<OsStr>,
Auto Trait Implementations§
impl<'a, Method, Prompt, Program, Arguments> Freeze for Logger<'a, Method, Prompt, Program, Arguments>
impl<'a, Method, Prompt, Program, Arguments> RefUnwindSafe for Logger<'a, Method, Prompt, Program, Arguments>where
Method: RefUnwindSafe + ?Sized,
Prompt: RefUnwindSafe + ?Sized,
Program: RefUnwindSafe + ?Sized,
Arguments: RefUnwindSafe + ?Sized,
impl<'a, Method, Prompt, Program, Arguments> Send for Logger<'a, Method, Prompt, Program, Arguments>
impl<'a, Method, Prompt, Program, Arguments> Sync for Logger<'a, Method, Prompt, Program, Arguments>
impl<'a, Method, Prompt, Program, Arguments> Unpin for Logger<'a, Method, Prompt, Program, Arguments>
impl<'a, Method, Prompt, Program, Arguments> UnwindSafe for Logger<'a, Method, Prompt, Program, Arguments>where
Method: RefUnwindSafe + ?Sized,
Prompt: RefUnwindSafe + ?Sized,
Program: RefUnwindSafe + ?Sized,
Arguments: RefUnwindSafe + ?Sized,
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<X> Pipe for X
impl<X> Pipe for X
Source§fn pipe_ref<'a, Return, Function>(&'a self, f: Function) -> Returnwhere
Function: FnOnce(&'a Self) -> Return,
fn pipe_ref<'a, Return, Function>(&'a self, f: Function) -> Returnwhere
Function: FnOnce(&'a Self) -> Return,
Source§fn pipe_mut<'a, Return, Function>(&'a mut self, f: Function) -> Returnwhere
Function: FnOnce(&'a mut Self) -> Return,
fn pipe_mut<'a, Return, Function>(&'a mut self, f: Function) -> Returnwhere
Function: FnOnce(&'a mut Self) -> Return,
Source§fn pipe_as_ref<'a, Param, Return, Function>(&'a self, f: Function) -> Return
fn pipe_as_ref<'a, Param, Return, Function>(&'a self, f: Function) -> Return
Apply
f
to &self
where f
takes a single parameter of type Param
and Self
implements trait AsRef<Param>
. Read moreSource§fn pipe_as_mut<'a, Param, Return, Function>(&'a mut self, f: Function) -> Return
fn pipe_as_mut<'a, Param, Return, Function>(&'a mut self, f: Function) -> Return
Apply
f
to &mut self
where f
takes a single parameter of type Param
and Self
implements trait AsMut<Param>
. Read moreSource§fn pipe_deref<'a, Param, Return, Function>(&'a self, f: Function) -> Return
fn pipe_deref<'a, Param, Return, Function>(&'a self, f: Function) -> Return
Apply
f
to &self
where f
takes a single parameter of type Param
and Self
implements trait Deref<Target = Param>
. Read moreSource§fn pipe_deref_mut<'a, Param, Return, Function>(
&'a mut self,
f: Function,
) -> Returnwhere
Self: DerefMut<Target = Param>,
Param: 'a + ?Sized,
Function: FnOnce(&'a mut Param) -> Return,
fn pipe_deref_mut<'a, Param, Return, Function>(
&'a mut self,
f: Function,
) -> Returnwhere
Self: DerefMut<Target = Param>,
Param: 'a + ?Sized,
Function: FnOnce(&'a mut Param) -> Return,
Apply
f
to &mut self
where f
takes a single parameter of type Param
and Self
implements trait [DerefMut<Target = Param>
]. Read moreSource§fn pipe_borrow<'a, Param, Return, Function>(&'a self, f: Function) -> Return
fn pipe_borrow<'a, Param, Return, Function>(&'a self, f: Function) -> Return
Apply
f
to &self
where f
takes a single parameter of type Param
and Self
implements trait Borrow<Param>
. Read moreSource§fn pipe_borrow_mut<'a, Param, Return, Function>(
&'a mut self,
f: Function,
) -> Return
fn pipe_borrow_mut<'a, Param, Return, Function>( &'a mut self, f: Function, ) -> Return
Apply
f
to &mut self
where f
takes a single parameter of type Param
and Self
implements trait BorrowMut<Param>
. Read more