pub struct AttributeList {
pub graph: Vec<(String, AttributeType)>,
pub vertex: Vec<(String, AttributeType)>,
pub edge: Vec<(String, AttributeType)>,
}Expand description
Names and types of all the attributes of a graph, see Graph::attribute_list.
Fields§
§graph: Vec<(String, AttributeType)>Graph attributes, in creation order.
vertex: Vec<(String, AttributeType)>Vertex attributes, in creation order.
edge: Vec<(String, AttributeType)>Edge attributes, in creation order.
Implementations§
Source§impl AttributeList
impl AttributeList
Sourcepub fn of(&self, kind: AttributeKind) -> &[(String, AttributeType)]
pub fn of(&self, kind: AttributeKind) -> &[(String, AttributeType)]
The attributes of the given kind.
Trait Implementations§
Source§impl Clone for AttributeList
impl Clone for AttributeList
Source§fn clone(&self) -> AttributeList
fn clone(&self) -> AttributeList
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for AttributeList
impl Debug for AttributeList
Source§impl Default for AttributeList
impl Default for AttributeList
Source§fn default() -> AttributeList
fn default() -> AttributeList
Returns the “default value” for a type. Read more
impl Eq for AttributeList
Source§impl PartialEq for AttributeList
impl PartialEq for AttributeList
Source§fn eq(&self, other: &AttributeList) -> bool
fn eq(&self, other: &AttributeList) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for AttributeList
Auto Trait Implementations§
impl Freeze for AttributeList
impl RefUnwindSafe for AttributeList
impl Send for AttributeList
impl Sync for AttributeList
impl Unpin for AttributeList
impl UnsafeUnpin for AttributeList
impl UnwindSafe for AttributeList
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