pub struct EncodeClosure<FN>(/* private fields */)
where
FN: Send + Sync + for<'a, 'b> Fn(&'a mut EncodingWriter<'b>) -> Result<(), EncodingError> + 'static;
Expand description
A wrapper for an closure making it implement EncodableInHeader
.
Implementations§
Source§impl<FN> EncodeClosure<FN>where
FN: Send + Sync + for<'a, 'b> Fn(&'a mut EncodingWriter<'b>) -> Result<(), EncodingError> + 'static,
impl<FN> EncodeClosure<FN>where
FN: Send + Sync + for<'a, 'b> Fn(&'a mut EncodingWriter<'b>) -> Result<(), EncodingError> + 'static,
Trait Implementations§
Source§impl<FN> Clone for EncodeClosure<FN>where
FN: Send + Sync + for<'a, 'b> Fn(&'a mut EncodingWriter<'b>) -> Result<(), EncodingError> + 'static,
impl<FN> Clone for EncodeClosure<FN>where
FN: Send + Sync + for<'a, 'b> Fn(&'a mut EncodingWriter<'b>) -> Result<(), EncodingError> + 'static,
Source§impl<FN> Debug for EncodeClosure<FN>where
FN: Send + Sync + for<'a, 'b> Fn(&'a mut EncodingWriter<'b>) -> Result<(), EncodingError> + 'static,
impl<FN> Debug for EncodeClosure<FN>where
FN: Send + Sync + for<'a, 'b> Fn(&'a mut EncodingWriter<'b>) -> Result<(), EncodingError> + 'static,
Source§impl<FN> EncodableInHeader for EncodeClosure<FN>where
FN: Send + Sync + for<'a, 'b> Fn(&'a mut EncodingWriter<'b>) -> Result<(), EncodingError> + 'static,
impl<FN> EncodableInHeader for EncodeClosure<FN>where
FN: Send + Sync + for<'a, 'b> Fn(&'a mut EncodingWriter<'b>) -> Result<(), EncodingError> + 'static,
fn encode(&self, encoder: &mut EncodingWriter<'_>) -> Result<(), EncodingError>
fn boxed_clone(&self) -> Box<dyn EncodableInHeader>
Auto Trait Implementations§
impl<FN> Freeze for EncodeClosure<FN>
impl<FN> RefUnwindSafe for EncodeClosure<FN>where
FN: RefUnwindSafe,
impl<FN> Send for EncodeClosure<FN>
impl<FN> Sync for EncodeClosure<FN>
impl<FN> Unpin for EncodeClosure<FN>
impl<FN> UnwindSafe for EncodeClosure<FN>where
FN: RefUnwindSafe,
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