pub struct SimpleConnection { /* private fields */ }Expand description
A unidirectional connection between two nodes, optionally carrying typed
relations (Java SimpleConnection). Equality is by connection id.
Implementations§
Source§impl SimpleConnection
impl SimpleConnection
pub fn get_id(&self) -> &str
pub fn get_source(&self) -> &Arc<SimpleNode> ⓘ
pub fn get_target(&self) -> &Arc<SimpleNode> ⓘ
Sourcepub fn add_relation(&self, relation_type: &str) -> Arc<SimpleRelationship> ⓘ
pub fn add_relation(&self, relation_type: &str) -> Arc<SimpleRelationship> ⓘ
Add (or replace) a relation of the given type.
Sourcepub fn get_relation(
&self,
relation_type: &str,
) -> Option<Arc<SimpleRelationship>>
pub fn get_relation( &self, relation_type: &str, ) -> Option<Arc<SimpleRelationship>>
Case-insensitive relation lookup.
pub fn get_relations(&self) -> Vec<Arc<SimpleRelationship>>
Trait Implementations§
Source§impl Debug for SimpleConnection
impl Debug for SimpleConnection
Auto Trait Implementations§
impl !Freeze for SimpleConnection
impl RefUnwindSafe for SimpleConnection
impl Send for SimpleConnection
impl Sync for SimpleConnection
impl Unpin for SimpleConnection
impl UnsafeUnpin for SimpleConnection
impl UnwindSafe for SimpleConnection
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more