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]

[src]

impl<T: Display, Co: TrickDisplay, Tr: TrickDisplay, Fa: TrickDisplay, I: 'static + TrickDisplay> Display for IfK<T, Co, Tr, Fa, I>
[src]

[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]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

impl<T: Default, Co: Default, Tr: Default, Fa: Default, I: Default> Default for IfK<T, Co, Tr, Fa, I>
[src]

[src]

Returns the "default value" for a type. Read more

impl<T: Debug, Co: Debug, Tr: Debug, Fa: Debug, I: Debug> Debug for IfK<T, Co, Tr, Fa, I>
[src]

[src]

Formats the value using the given formatter.

impl<T: PartialEq, Co: PartialEq, Tr: PartialEq, Fa: PartialEq, I: PartialEq> PartialEq for IfK<T, Co, Tr, Fa, I>
[src]

[src]

This method tests for self and other values to be equal, and is used by ==. Read more

[src]

This method tests for !=.