Trait Relation

Source
pub trait Relation: OSMObjBase {
    // Required methods
    fn members<'a>(
        &'a self,
    ) -> Box<dyn ExactSizeIterator<Item = (OSMObjectType, ObjId, &'a str)> + 'a>;
    fn set_members(
        &mut self,
        members: impl IntoIterator<Item = (OSMObjectType, ObjId, impl Into<String>)>,
    );
}
Expand description

A Relation

Required Methods§

Source

fn members<'a>( &'a self, ) -> Box<dyn ExactSizeIterator<Item = (OSMObjectType, ObjId, &'a str)> + 'a>

Source

fn set_members( &mut self, members: impl IntoIterator<Item = (OSMObjectType, ObjId, impl Into<String>)>, )

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§