Struct protobuf::CachedSize
source · pub struct CachedSize { /* private fields */ }
Expand description
Cached size field used in generated code.
It is always equal to itself to simplify generated code.
(Generated code can use #[derive(Eq)]
).
Implementations§
Trait Implementations§
source§impl Clone for CachedSize
impl Clone for CachedSize
source§fn clone(&self) -> CachedSize
fn clone(&self) -> CachedSize
Returns a copy 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 CachedSize
impl Debug for CachedSize
source§impl Default for CachedSize
impl Default for CachedSize
source§fn default() -> CachedSize
fn default() -> CachedSize
Returns the “default value” for a type. Read more
source§impl PartialEq<CachedSize> for CachedSize
impl PartialEq<CachedSize> for CachedSize
source§fn eq(&self, _other: &CachedSize) -> bool
fn eq(&self, _other: &CachedSize) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Eq for CachedSize
Auto Trait Implementations§
impl RefUnwindSafe for CachedSize
impl Send for CachedSize
impl Sync for CachedSize
impl Unpin for CachedSize
impl UnwindSafe for CachedSize
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