[][src]Trait osmio::OSMObj

pub trait OSMObj: OSMObjBase {
    type Node: Node;
    type Way: Way;
    type Relation: Relation;
    fn object_type(&self) -> OSMObjectType;
fn into_node(self) -> Option<Self::Node>;
fn into_way(self) -> Option<Self::Way>;
fn into_relation(self) -> Option<Self::Relation>;
fn as_node(&self) -> Option<&Self::Node>;
fn as_way(&self) -> Option<&Self::Way>;
fn as_relation(&self) -> Option<&Self::Relation>; fn is_node(&self) -> bool { ... }
fn is_way(&self) -> bool { ... }
fn is_relation(&self) -> bool { ... } }

Associated Types

type Node: Node

type Way: Way

type Relation: Relation

Loading content...

Required methods

fn object_type(&self) -> OSMObjectType

fn into_node(self) -> Option<Self::Node>

fn into_way(self) -> Option<Self::Way>

fn into_relation(self) -> Option<Self::Relation>

fn as_node(&self) -> Option<&Self::Node>

fn as_way(&self) -> Option<&Self::Way>

fn as_relation(&self) -> Option<&Self::Relation>

Loading content...

Provided methods

fn is_node(&self) -> bool

fn is_way(&self) -> bool

fn is_relation(&self) -> bool

Loading content...

Implementors

Loading content...