pub struct ExtFieldOptional<M, T> { /* private fields */ }
Expand description
Optional ext field
This is initialized from generated code, do not instantiate directly.
Implementations§
Source§impl<M, V> ExtFieldOptional<M, V>
impl<M, V> ExtFieldOptional<M, V>
Source§impl<M: Message, V: ProtobufValue> ExtFieldOptional<M, V>
impl<M: Message, V: ProtobufValue> ExtFieldOptional<M, V>
Sourcepub fn get(&self, m: &M) -> Option<V>
pub fn get(&self, m: &M) -> Option<V>
Get a copy of value from a message.
Extension data is stored in UnknownFields
.
Auto Trait Implementations§
impl<M, T> Freeze for ExtFieldOptional<M, T>
impl<M, T> RefUnwindSafe for ExtFieldOptional<M, T>where
M: RefUnwindSafe,
T: RefUnwindSafe,
impl<M, T> Send for ExtFieldOptional<M, T>
impl<M, T> Sync for ExtFieldOptional<M, T>
impl<M, T> Unpin for ExtFieldOptional<M, T>
impl<M, T> UnwindSafe for ExtFieldOptional<M, T>where
M: UnwindSafe,
T: 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