Struct libosmium::tag_list::OwnedTagList
source · Expand description
Tuple Fields§
§0: Vec<u8>
Implementations§
source§impl OwnedTagList
impl OwnedTagList
sourcepub const fn new() -> OwnedTagList
pub const fn new() -> OwnedTagList
Constructs a new, empty OwnedTagList
.
The list will not allocate until elements are pushed onto it. (It just calls Vec::new
)
sourcepub fn push_pair(&mut self, key: &str, value: &str)
pub fn push_pair(&mut self, key: &str, value: &str)
Add a new key-value pair to the list
This method does not check duplicate keys. It simply pushes the new pair.
Panics
Panics if any of the arguments contains a NUL
character.
This could have been handled by returning an error, but for now I chose not to.
Trait Implementations§
source§impl Clone for OwnedTagList
impl Clone for OwnedTagList
source§fn clone(&self) -> OwnedTagList
fn clone(&self) -> OwnedTagList
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 more