pub struct ChargedBytesBinding {
pub type_id_fn: fn() -> TypeId,
pub resolve_fn: fn(&(dyn Any + 'static)) -> usize,
}Expand description
Inventory entry mapping TypeId → ChargedBytesFn. Submitted by
[register_charged_bytes!].
Fields§
§type_id_fn: fn() -> TypeIdTypeId::of::<T> is non-const; use a closure.
resolve_fn: fn(&(dyn Any + 'static)) -> usizeDowncasts and returns the wire-byte count.
Trait Implementations§
impl Collect for ChargedBytesBinding
Auto Trait Implementations§
impl Freeze for ChargedBytesBinding
impl RefUnwindSafe for ChargedBytesBinding
impl Send for ChargedBytesBinding
impl Sync for ChargedBytesBinding
impl Unpin for ChargedBytesBinding
impl UnsafeUnpin for ChargedBytesBinding
impl UnwindSafe for ChargedBytesBinding
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