Struct path_semantics_std::IfK
[−]
[src]
pub struct IfK<T, Co, Tr, Fa, I = ()> { /* fields omitted */ }
\(x) = if co(k) {tr(x)} else {fa(x)}
Technically this could reduce the condition to a bool
,
but preserving the k
makes it easier to debug.
Trait Implementations
impl<T: Clone, C: Clone, A: ExPath, B: ExPath> ExPath for IfK<T, C, A, B>
[src]
impl<T: Display, Co: TrickDisplay, Tr: TrickDisplay, Fa: TrickDisplay, I: 'static + TrickDisplay> Display for IfK<T, Co, Tr, Fa, I>
[src]
fn fmt(&self, fmt: &mut Formatter) -> Result
[src]
Formats the value using the given formatter. Read more
impl<T: Copy, Co: Copy, Tr: Copy, Fa: Copy, I: Copy> Copy for IfK<T, Co, Tr, Fa, I>
[src]
impl<T: Clone, Co: Clone, Tr: Clone, Fa: Clone, I: Clone> Clone for IfK<T, Co, Tr, Fa, I>
[src]
fn clone(&self) -> IfK<T, Co, Tr, Fa, I>
[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more