#[repr(C)]pub struct igraph_attribute_record_t {
pub name: *mut c_char,
pub type_: igraph_attribute_type_t,
pub value: igraph_attribute_record_t__bindgen_ty_1,
pub default_value: igraph_attribute_record_t__bindgen_ty_2,
}Expand description
\typedef igraph_attribute_record_t \brief An attribute record holding the name, type and values of an attribute.
This composite data type is used in the attribute interface to specify a name-type-value triplet where the name is the name of a graph, vertex or edge attribute, the type is the corresponding igraph type of the attribute and the value is a \em vector of attribute values. Note that for graph attributes we use a vector of length 1. The type of the vector depends on the attribute type: it is \ref igraph_vector_t for numeric attributes, \c igraph_strvector_t for string attributes and \c igraph_vector_bool_t for Boolean attributes.
Fields§
§name: *mut c_char§type_: igraph_attribute_type_t§value: igraph_attribute_record_t__bindgen_ty_1§default_value: igraph_attribute_record_t__bindgen_ty_2Trait Implementations§
Source§impl Clone for igraph_attribute_record_t
impl Clone for igraph_attribute_record_t
Source§fn clone(&self) -> igraph_attribute_record_t
fn clone(&self) -> igraph_attribute_record_t
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more