pub trait IdConvert: PrefixLookup + Sync {
// Required methods
fn vertex_id<'life0, 'async_trait>(
&'life0 self,
name: Vertex,
) -> Pin<Box<dyn Future<Output = Result<Id>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn vertex_id_with_max_group<'life0, 'life1, 'async_trait>(
&'life0 self,
name: &'life1 Vertex,
max_group: Group,
) -> Pin<Box<dyn Future<Output = Result<Option<Id>>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait;
fn vertex_name<'life0, 'async_trait>(
&'life0 self,
id: Id,
) -> Pin<Box<dyn Future<Output = Result<Vertex>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn contains_vertex_name<'life0, 'life1, 'async_trait>(
&'life0 self,
name: &'life1 Vertex,
) -> Pin<Box<dyn Future<Output = Result<bool>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait;
fn contains_vertex_id_locally<'life0, 'life1, 'async_trait>(
&'life0 self,
id: &'life1 [Id],
) -> Pin<Box<dyn Future<Output = Result<Vec<bool>>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait;
fn contains_vertex_name_locally<'life0, 'life1, 'async_trait>(
&'life0 self,
name: &'life1 [Vertex],
) -> Pin<Box<dyn Future<Output = Result<Vec<bool>>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait;
fn map_id(&self) -> &str;
fn map_version(&self) -> &VerLink;
// Provided methods
fn vertex_id_optional<'life0, 'life1, 'async_trait>(
&'life0 self,
name: &'life1 Vertex,
) -> Pin<Box<dyn Future<Output = Result<Option<Id>>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait { ... }
fn vertex_name_batch<'life0, 'life1, 'async_trait>(
&'life0 self,
ids: &'life1 [Id],
) -> Pin<Box<dyn Future<Output = Result<Vec<Result<Vertex>>>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait { ... }
fn vertex_id_batch<'life0, 'life1, 'async_trait>(
&'life0 self,
names: &'life1 [Vertex],
) -> Pin<Box<dyn Future<Output = Result<Vec<Result<Id>>>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait { ... }
}Expand description
Convert between Vertex and Id.
Required Methods§
fn vertex_id<'life0, 'async_trait>(
&'life0 self,
name: Vertex,
) -> Pin<Box<dyn Future<Output = Result<Id>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn vertex_id_with_max_group<'life0, 'life1, 'async_trait>(
&'life0 self,
name: &'life1 Vertex,
max_group: Group,
) -> Pin<Box<dyn Future<Output = Result<Option<Id>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn vertex_name<'life0, 'async_trait>(
&'life0 self,
id: Id,
) -> Pin<Box<dyn Future<Output = Result<Vertex>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn contains_vertex_name<'life0, 'life1, 'async_trait>(
&'life0 self,
name: &'life1 Vertex,
) -> Pin<Box<dyn Future<Output = Result<bool>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Sourcefn contains_vertex_id_locally<'life0, 'life1, 'async_trait>(
&'life0 self,
id: &'life1 [Id],
) -> Pin<Box<dyn Future<Output = Result<Vec<bool>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn contains_vertex_id_locally<'life0, 'life1, 'async_trait>(
&'life0 self,
id: &'life1 [Id],
) -> Pin<Box<dyn Future<Output = Result<Vec<bool>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Test if an id is present locally. Do not trigger remote fetching.
Sourcefn contains_vertex_name_locally<'life0, 'life1, 'async_trait>(
&'life0 self,
name: &'life1 [Vertex],
) -> Pin<Box<dyn Future<Output = Result<Vec<bool>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn contains_vertex_name_locally<'life0, 'life1, 'async_trait>(
&'life0 self,
name: &'life1 [Vertex],
) -> Pin<Box<dyn Future<Output = Result<Vec<bool>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Test if an name is present locally. Do not trigger remote fetching.
Sourcefn map_version(&self) -> &VerLink
fn map_version(&self) -> &VerLink
Version of the map. Useful to figure out compatibility between two maps.
For performance, this does not include changes to the VIRTUAL group.