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