pub trait AsAbstractGml: AsAbstractObject {
// Required method
fn abstract_gml(&self) -> &AbstractGml;
// Provided methods
fn id(&self) -> Option<&Id> { ... }
fn names(&self) -> &[Code] { ... }
}Expand description
Object-safe read accessor for AbstractGml fields.
Implemented by all GML object types. The default methods delegate to
abstract_gml(), so implementors only need to
provide that single method.
Required Methods§
Sourcefn abstract_gml(&self) -> &AbstractGml
fn abstract_gml(&self) -> &AbstractGml
Returns a reference to the embedded AbstractGml base data.
Provided Methods§
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".