Trait typed_graph::Downcast
source · pub trait Downcast<'b, NK, EK, T, S>{
// Required method
fn downcast<'a: 'b>(&'a self) -> SchemaResult<T, NK, EK, S>;
}
Required Methods§
sourcefn downcast<'a: 'b>(&'a self) -> SchemaResult<T, NK, EK, S>
fn downcast<'a: 'b>(&'a self) -> SchemaResult<T, NK, EK, S>
Cast a node or edge into a more specific type
The call will fail if the requested type is not a suptype of the current one