Skip to main content

AsAbstractGmlMut

Trait AsAbstractGmlMut 

Source
pub trait AsAbstractGmlMut: AsAbstractObjectMut + AsAbstractGml {
    // Required method
    fn abstract_gml_mut(&mut self) -> &mut AbstractGml;

    // Provided methods
    fn set_id(&mut self, id: Id) { ... }
    fn set_id_opt(&mut self, id: Option<Id>) { ... }
    fn clear_id(&mut self) { ... }
    fn set_names(&mut self, names: Vec<Code>) { ... }
    fn push_name(&mut self, name: Code) { ... }
    fn extend_names(&mut self, names: impl IntoIterator<Item = Code>) { ... }
}
Expand description

Mutable companion to AsAbstractGml.

Implemented by all GML object types that expose mutable access to their base data.

Required Methods§

Source

fn abstract_gml_mut(&mut self) -> &mut AbstractGml

Returns a mutable reference to the embedded AbstractGml base data.

Provided Methods§

Source

fn set_id(&mut self, id: Id)

Sets the identifier of this GML object.

Source

fn set_id_opt(&mut self, id: Option<Id>)

Sets or clears the identifier of this GML object.

Source

fn clear_id(&mut self)

Clears the identifier of this GML object.

Source

fn set_names(&mut self, names: Vec<Code>)

Source

fn push_name(&mut self, name: Code)

Source

fn extend_names(&mut self, names: impl IntoIterator<Item = Code>)

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§