pub struct Edge { /* private fields */ }Implementations§
Source§impl Edge
impl Edge
pub fn new<T>( id: GID, label: T, in_v: Option<Vertex>, out_v: Option<Vertex>, properties: HashMap<String, Property>, ) -> Edge
pub fn partial_new(id: GID) -> Edge
pub fn add_label<T>(&mut self, label: T)
pub fn add_property(&mut self, property: Property)
pub fn add_properties(&mut self, properties: HashMap<String, Property>)
pub fn id(&self) -> &GID
pub fn label(&self) -> &String
pub fn set_partial_in_v(&mut self, id: GID)
pub fn set_partial_out_v(&mut self, id: GID)
pub fn set_in_v(&mut self, v: Vertex)
pub fn set_out_v(&mut self, v: Vertex)
pub fn in_v(&self) -> &Option<Vertex>
pub fn out_v(&self) -> &Option<Vertex>
pub fn iter(&self) -> Iter<'_, String, Property>
pub fn property(&self, key: &str) -> Option<&Property>
Trait Implementations§
Source§impl IntoIterator for Edge
impl IntoIterator for Edge
impl Eq for Edge
Auto Trait Implementations§
impl Freeze for Edge
impl RefUnwindSafe for Edge
impl Send for Edge
impl Sync for Edge
impl Unpin for Edge
impl UnwindSafe for Edge
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