Struct osmpbfreader::osmformat::PrimitiveGroup [−][src]
pub struct PrimitiveGroup { pub nodes: RepeatedField<Node>, pub dense: SingularPtrField<DenseNodes>, pub ways: RepeatedField<Way>, pub relations: RepeatedField<Relation>, pub changesets: RepeatedField<ChangeSet>, pub unknown_fields: UnknownFields, pub cached_size: CachedSize, }
Fields
nodes: RepeatedField<Node>
dense: SingularPtrField<DenseNodes>
ways: RepeatedField<Way>
relations: RepeatedField<Relation>
changesets: RepeatedField<ChangeSet>
unknown_fields: UnknownFields
cached_size: CachedSize
Implementations
impl PrimitiveGroup
[src]
impl PrimitiveGroup
[src]pub fn new() -> PrimitiveGroup
[src]
pub fn get_nodes(&self) -> &[Node]
[src]
pub fn clear_nodes(&mut self)
[src]
pub fn set_nodes(&mut self, v: RepeatedField<Node>)
[src]
pub fn mut_nodes(&mut self) -> &mut RepeatedField<Node>
[src]
pub fn take_nodes(&mut self) -> RepeatedField<Node>
[src]
pub fn get_dense(&self) -> &DenseNodes
[src]
pub fn clear_dense(&mut self)
[src]
pub fn has_dense(&self) -> bool
[src]
pub fn set_dense(&mut self, v: DenseNodes)
[src]
pub fn mut_dense(&mut self) -> &mut DenseNodes
[src]
pub fn take_dense(&mut self) -> DenseNodes
[src]
pub fn get_ways(&self) -> &[Way]
[src]
pub fn clear_ways(&mut self)
[src]
pub fn set_ways(&mut self, v: RepeatedField<Way>)
[src]
pub fn mut_ways(&mut self) -> &mut RepeatedField<Way>
[src]
pub fn take_ways(&mut self) -> RepeatedField<Way>
[src]
pub fn get_relations(&self) -> &[Relation]
[src]
pub fn clear_relations(&mut self)
[src]
pub fn set_relations(&mut self, v: RepeatedField<Relation>)
[src]
pub fn mut_relations(&mut self) -> &mut RepeatedField<Relation>
[src]
pub fn take_relations(&mut self) -> RepeatedField<Relation>
[src]
pub fn get_changesets(&self) -> &[ChangeSet]
[src]
pub fn clear_changesets(&mut self)
[src]
pub fn set_changesets(&mut self, v: RepeatedField<ChangeSet>)
[src]
pub fn mut_changesets(&mut self) -> &mut RepeatedField<ChangeSet>
[src]
pub fn take_changesets(&mut self) -> RepeatedField<ChangeSet>
[src]
Trait Implementations
impl Clear for PrimitiveGroup
[src]
impl Clear for PrimitiveGroup
[src]impl Clone for PrimitiveGroup
[src]
impl Clone for PrimitiveGroup
[src]fn clone(&self) -> PrimitiveGroup
[src]
fn clone(&self) -> PrimitiveGroup
[src]Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]Performs copy-assignment from source
. Read more
impl Debug for PrimitiveGroup
[src]
impl Debug for PrimitiveGroup
[src]impl Default for PrimitiveGroup
[src]
impl Default for PrimitiveGroup
[src]fn default() -> PrimitiveGroup
[src]
fn default() -> PrimitiveGroup
[src]Returns the “default value” for a type. Read more
impl<'a> Default for &'a PrimitiveGroup
[src]
impl<'a> Default for &'a PrimitiveGroup
[src]fn default() -> &'a PrimitiveGroup
[src]
fn default() -> &'a PrimitiveGroup
[src]Returns the “default value” for a type. Read more
impl Message for PrimitiveGroup
[src]
impl Message for PrimitiveGroup
[src]fn is_initialized(&self) -> bool
[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]
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]
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]
fn write_to_with_cached_sizes(
&self,
os: &mut CodedOutputStream<'_>
) -> ProtobufResult<()>
[src]Write message to the stream. Read more
fn get_cached_size(&self) -> u32
[src]
fn get_cached_size(&self) -> u32
[src]Get size previously computed by compute_size
.
fn get_unknown_fields(&self) -> &UnknownFields
[src]
fn get_unknown_fields(&self) -> &UnknownFields
[src]Get a reference to unknown fields.
fn mut_unknown_fields(&mut self) -> &mut UnknownFields
[src]
fn mut_unknown_fields(&mut self) -> &mut UnknownFields
[src]Get a mutable reference to unknown fields.
fn as_any_mut(&mut self) -> &mut dyn Any
[src]
fn as_any_mut(&mut self) -> &mut dyn Any
[src]View self as mutable Any
.
fn descriptor(&self) -> &'static MessageDescriptor
[src]
fn descriptor(&self) -> &'static MessageDescriptor
[src]Message descriptor for this message, used for reflection.
fn new() -> PrimitiveGroup
[src]
fn new() -> PrimitiveGroup
[src]Create an empty message object. Read more
fn descriptor_static() -> &'static MessageDescriptor
[src]
fn descriptor_static() -> &'static MessageDescriptor
[src]Get message descriptor for message type. Read more
fn default_instance() -> &'static PrimitiveGroup
[src]
fn default_instance() -> &'static PrimitiveGroup
[src]Return a pointer to default immutable message with static lifetime. Read more
fn parse_from(is: &mut CodedInputStream<'_>) -> Result<Self, ProtobufError>
[src]
fn parse_from(is: &mut CodedInputStream<'_>) -> Result<Self, ProtobufError>
[src]Parse message from stream.
fn write_to(&self, os: &mut CodedOutputStream<'_>) -> Result<(), ProtobufError>
[src]
fn write_to(&self, os: &mut CodedOutputStream<'_>) -> Result<(), ProtobufError>
[src]Write the message to the stream. Read more
fn write_length_delimited_to(
&self,
os: &mut CodedOutputStream<'_>
) -> Result<(), ProtobufError>
[src]
fn write_length_delimited_to(
&self,
os: &mut CodedOutputStream<'_>
) -> Result<(), ProtobufError>
[src]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, Global>
) -> Result<(), ProtobufError>
[src]
fn write_length_delimited_to_vec(
&self,
vec: &mut Vec<u8, Global>
) -> Result<(), ProtobufError>
[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]) -> Result<(), ProtobufError>
[src]
fn merge_from_bytes(&mut self, bytes: &[u8]) -> Result<(), ProtobufError>
[src]Update this message object with fields read from given stream.
fn parse_from_reader(reader: &mut dyn Read) -> Result<Self, ProtobufError>
[src]
fn parse_from_reader(reader: &mut dyn Read) -> Result<Self, ProtobufError>
[src]Parse message from reader. Parse stops on EOF or when error encountered. Read more
fn parse_from_bytes(bytes: &[u8]) -> Result<Self, ProtobufError>
[src]
fn parse_from_bytes(bytes: &[u8]) -> Result<Self, ProtobufError>
[src]Parse message from byte array.
fn check_initialized(&self) -> Result<(), ProtobufError>
[src]
fn check_initialized(&self) -> Result<(), ProtobufError>
[src]Check if all required fields of this object are initialized.
fn write_to_writer(&self, w: &mut dyn Write) -> Result<(), ProtobufError>
[src]
fn write_to_writer(&self, w: &mut dyn Write) -> Result<(), ProtobufError>
[src]Write the message to the writer.
fn write_to_vec(&self, v: &mut Vec<u8, Global>) -> Result<(), ProtobufError>
[src]
fn write_to_vec(&self, v: &mut Vec<u8, Global>) -> Result<(), ProtobufError>
[src]Write the message to bytes vec.
fn write_to_bytes(&self) -> Result<Vec<u8, Global>, ProtobufError>
[src]
fn write_to_bytes(&self) -> Result<Vec<u8, Global>, ProtobufError>
[src]Write the message to bytes vec.
fn write_length_delimited_to_writer(
&self,
w: &mut dyn Write
) -> Result<(), ProtobufError>
[src]
fn write_length_delimited_to_writer(
&self,
w: &mut dyn Write
) -> Result<(), ProtobufError>
[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
) -> Result<Vec<u8, Global>, ProtobufError>
[src]
fn write_length_delimited_to_bytes(
&self
) -> Result<Vec<u8, Global>, ProtobufError>
[src]Write the message to the bytes vec, prepend the message with message length encoded as varint. Read more
impl PartialEq<PrimitiveGroup> for PrimitiveGroup
[src]
impl PartialEq<PrimitiveGroup> for PrimitiveGroup
[src]fn eq(&self, other: &PrimitiveGroup) -> bool
[src]
fn eq(&self, other: &PrimitiveGroup) -> bool
[src]This method tests for self
and other
values to be equal, and is used
by ==
. Read more
fn ne(&self, other: &PrimitiveGroup) -> bool
[src]
fn ne(&self, other: &PrimitiveGroup) -> bool
[src]This method tests for !=
.
impl ProtobufValue for PrimitiveGroup
[src]
impl ProtobufValue for PrimitiveGroup
[src]fn as_ref(&self) -> ReflectValueRef<'_>
[src]
fn as_ref(&self) -> ReflectValueRef<'_>
[src]As ref
fn is_non_zero(&self) -> bool
[src]
fn is_non_zero(&self) -> bool
[src]Is value non-zero?
fn as_ref_copy(&self) -> ReflectValueRef<'static>
[src]
fn as_ref_copy(&self) -> ReflectValueRef<'static>
[src]Return ProtobufValueRef
if self is Copy
. Read more
impl StructuralPartialEq for PrimitiveGroup
[src]
Auto Trait Implementations
impl RefUnwindSafe for PrimitiveGroup
impl Send for PrimitiveGroup
impl Sync for PrimitiveGroup
impl Unpin for PrimitiveGroup
impl UnwindSafe for PrimitiveGroup
Blanket Implementations
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]pub fn borrow_mut(&mut self) -> &mut T
[src]
pub fn borrow_mut(&mut self) -> &mut T
[src]Mutably borrows from an owned value. Read more
impl<T> ToOwned for T where
T: Clone,
[src]
impl<T> ToOwned for T where
T: Clone,
[src]type Owned = T
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn to_owned(&self) -> T
[src]Creates owned data from borrowed data, usually by cloning. Read more
pub fn clone_into(&self, target: &mut T)
[src]
pub fn clone_into(&self, target: &mut T)
[src]🔬 This is a nightly-only experimental API. (toowned_clone_into
)
recently added
Uses borrowed data to replace owned data, usually by cloning. Read more