Struct protobuf::well_known_types::UInt32Value
[−]
[src]
pub struct UInt32Value { pub value: u32, // some fields omitted }
Fields
value: u32
Methods
impl UInt32Value
[src]
pub fn new() -> UInt32Value
[src]
pub fn clear_value(&mut self)
[src]
pub fn set_value(&mut self, v: u32)
[src]
pub fn get_value(&self) -> u32
[src]
Trait Implementations
impl PartialEq for UInt32Value
[src]
fn eq(&self, __arg_0: &UInt32Value) -> bool
[src]
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &UInt32Value) -> bool
[src]
This method tests for !=
.
impl Clone for UInt32Value
[src]
fn clone(&self) -> UInt32Value
[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl Default for UInt32Value
[src]
fn default() -> UInt32Value
[src]
Returns the "default value" for a type. Read more
impl Message for UInt32Value
[src]
fn is_initialized(&self) -> bool
[src]
True iff all required fields are initialized. Always returns true
for protobuf 3. Read more
fn merge_from(&mut self, is: &mut CodedInputStream) -> ProtobufResult<()>
[src]
Update this message object with fields read from given stream.
fn compute_size(&self) -> u32
[src]
Compute and cache size of this message and all nested messages
fn write_to_with_cached_sizes(
&self,
os: &mut CodedOutputStream
) -> ProtobufResult<()>
[src]
&self,
os: &mut CodedOutputStream
) -> ProtobufResult<()>
Write message to the stream. Read more
fn get_cached_size(&self) -> u32
[src]
Get size previously computed by compute_size
.
fn get_unknown_fields(&self) -> &UnknownFields
[src]
Get a reference to unknown fields.
fn mut_unknown_fields(&mut self) -> &mut UnknownFields
[src]
Get a mutable reference to unknown fields.
fn as_any(&self) -> &Any
[src]
View self as Any
.
fn as_any_mut(&mut self) -> &mut Any
[src]
View self as mutable Any
.
fn into_any(self: Box<Self>) -> Box<Any>
[src]
Convert boxed self to boxed Any
.
fn descriptor(&self) -> &'static MessageDescriptor
[src]
Message descriptor for this message, used for reflection.
fn new() -> UInt32Value
[src]
Create an empty message object.
fn descriptor_static() -> &'static MessageDescriptor
[src]
Get message descriptor for message type.
fn default_instance() -> &'static UInt32Value
[src]
Return a pointer to default immutable message.
fn write_to(&self, os: &mut CodedOutputStream) -> ProtobufResult<()>
[src]
Write the message to the stream. Read more
fn write_length_delimited_to(
&self,
os: &mut CodedOutputStream
) -> ProtobufResult<()>
[src]
&self,
os: &mut CodedOutputStream
) -> ProtobufResult<()>
Write the message to the stream prepending the message with message length encoded as varint. Read more
fn write_length_delimited_to_vec(&self, vec: &mut Vec<u8>) -> ProtobufResult<()>
[src]
Write the message to the vec, prepend the message with message length encoded as varint. Read more
fn merge_from_bytes(&mut self, bytes: &[u8]) -> ProtobufResult<()>
[src]
Update this message object with fields read from given stream.
fn check_initialized(&self) -> ProtobufResult<()>
[src]
Check if all required fields of this object are initialized.
fn write_to_writer(&self, w: &mut Write) -> ProtobufResult<()>
[src]
Write the message to the writer.
fn write_to_vec(&self, v: &mut Vec<u8>) -> ProtobufResult<()>
[src]
Write the message to bytes vec.
fn write_to_bytes(&self) -> ProtobufResult<Vec<u8>>
[src]
Write the message to bytes vec.
fn write_length_delimited_to_writer(&self, w: &mut Write) -> ProtobufResult<()>
[src]
Write the message to the writer, prepend the message with message length encoded as varint. Read more
fn write_length_delimited_to_bytes(&self) -> ProtobufResult<Vec<u8>>
[src]
Write the message to the bytes vec, prepend the message with message length encoded as varint. Read more
fn type_id(&self) -> TypeId
[src]
Get type id for downcasting.
impl Clear for UInt32Value
[src]
impl Debug for UInt32Value
[src]
fn fmt(&self, f: &mut Formatter) -> Result
[src]
Formats the value using the given formatter. Read more