Type Alias FrameInitOrResult
pub type FrameInitOrResult<FRAME> = ItemOrResult<<FRAME as Frame>::FrameInit, <FRAME as Frame>::FrameResult>;
Aliased Type§
enum FrameInitOrResult<FRAME> {
Item(<FRAME as Frame>::FrameInit),
Result(<FRAME as Frame>::FrameResult),
}
Variants§
Layout§
Note: Encountered an error during type layout; the type failed to be normalized.
Implementations
§impl<ITEM, RES> ItemOrResult<ITEM, RES>
impl<ITEM, RES> ItemOrResult<ITEM, RES>
pub fn map_frame<OITEM>( self, f: impl FnOnce(ITEM) -> OITEM, ) -> ItemOrResult<OITEM, RES>
pub fn map_result<ORES>( self, f: impl FnOnce(RES) -> ORES, ) -> ItemOrResult<ITEM, ORES>
Trait Implementations
§impl<ITEM, RES> Clone for ItemOrResult<ITEM, RES>
impl<ITEM, RES> Clone for ItemOrResult<ITEM, RES>
§fn clone(&self) -> ItemOrResult<ITEM, RES>
fn clone(&self) -> ItemOrResult<ITEM, RES>
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read more