pub struct Fn<F>(pub F);Expand description
Wrapper to allow a value to be specified as a callable allowing [FromByteReaderWith] to be
implemented for all types.
Tuple Fields§
§0: FTrait Implementations§
impl<F: Copy> Copy for Fn<F>
impl<F: Eq> Eq for Fn<F>
Source§impl<F: Ord> Ord for Fn<F>
impl<F: Ord> Ord for Fn<F>
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl<F: PartialOrd> PartialOrd for Fn<F>
impl<F: PartialOrd> PartialOrd for Fn<F>
impl<F: PartialEq> StructuralPartialEq for Fn<F>
Auto Trait Implementations§
impl<F> Freeze for Fn<F>where
F: Freeze,
impl<F> RefUnwindSafe for Fn<F>where
F: RefUnwindSafe,
impl<F> Send for Fn<F>where
F: Send,
impl<F> Sync for Fn<F>where
F: Sync,
impl<F> Unpin for Fn<F>where
F: Unpin,
impl<F> UnsafeUnpin for Fn<F>where
F: UnsafeUnpin,
impl<F> UnwindSafe for Fn<F>where
F: UnwindSafe,
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