#[repr(C)]pub struct pb_extension_type_s {
pub decode: Option<unsafe extern "C" fn(stream: *mut pb_istream_t, extension: *mut pb_extension_t, tag: u32, wire_type: pb_wire_type_t) -> bool>,
pub encode: Option<unsafe extern "C" fn(stream: *mut pb_ostream_t, extension: *const pb_extension_t) -> bool>,
pub arg: *const c_void,
}Fields§
§decode: Option<unsafe extern "C" fn(stream: *mut pb_istream_t, extension: *mut pb_extension_t, tag: u32, wire_type: pb_wire_type_t) -> bool>§encode: Option<unsafe extern "C" fn(stream: *mut pb_ostream_t, extension: *const pb_extension_t) -> bool>§arg: *const c_voidTrait Implementations§
Source§impl Clone for pb_extension_type_s
impl Clone for pb_extension_type_s
Source§fn clone(&self) -> pb_extension_type_s
fn clone(&self) -> pb_extension_type_s
Returns a duplicate 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 moreSource§impl Debug for pb_extension_type_s
impl Debug for pb_extension_type_s
impl Copy for pb_extension_type_s
Auto Trait Implementations§
impl Freeze for pb_extension_type_s
impl RefUnwindSafe for pb_extension_type_s
impl !Send for pb_extension_type_s
impl !Sync for pb_extension_type_s
impl Unpin for pb_extension_type_s
impl UnwindSafe for pb_extension_type_s
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