Struct dag::VertexListWithOptions
source · pub struct VertexListWithOptions { /* private fields */ }
Expand description
A list of VertexName
s (usually heads) with options attached to each vertex.
Implementations§
source§impl VertexListWithOptions
impl VertexListWithOptions
sourcepub fn vertex_options(&self) -> Vec<(VertexName, VertexOptions)>
pub fn vertex_options(&self) -> Vec<(VertexName, VertexOptions)>
Get the vertexes and their options.
sourcepub fn vertexes(&self) -> Vec<VertexName>
pub fn vertexes(&self) -> Vec<VertexName>
Get the vertexes.
sourcepub fn vertexes_by_group(&self, group: Group) -> Vec<VertexName>
pub fn vertexes_by_group(&self, group: Group) -> Vec<VertexName>
Get the vertexes, filter by the highest_group
option.
sourcepub fn push(&mut self, head_opts: (VertexName, VertexOptions))
pub fn push(&mut self, head_opts: (VertexName, VertexOptions))
Add a new item to the list.
sourcepub fn with_highest_group(self, group: Group) -> Self
pub fn with_highest_group(self, group: Group) -> Self
Set the highest_group
option for all vertexes.
Trait Implementations§
source§impl Clone for VertexListWithOptions
impl Clone for VertexListWithOptions
source§fn clone(&self) -> VertexListWithOptions
fn clone(&self) -> VertexListWithOptions
Returns a copy of the value. Read more
1.0.0 · 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 VertexListWithOptions
impl Debug for VertexListWithOptions
source§impl Default for VertexListWithOptions
impl Default for VertexListWithOptions
source§fn default() -> VertexListWithOptions
fn default() -> VertexListWithOptions
Returns the “default value” for a type. Read more
source§impl<'de> Deserialize<'de> for VertexListWithOptions
impl<'de> Deserialize<'de> for VertexListWithOptions
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl<'a> From<&'a [VertexName]> for VertexListWithOptions
impl<'a> From<&'a [VertexName]> for VertexListWithOptions
source§fn from(list: &'a [VertexName]) -> Self
fn from(list: &'a [VertexName]) -> Self
Converts to this type from the input type.
source§impl From<Vec<(VertexName, VertexOptions), Global>> for VertexListWithOptions
impl From<Vec<(VertexName, VertexOptions), Global>> for VertexListWithOptions
source§fn from(list: Vec<(VertexName, VertexOptions)>) -> Self
fn from(list: Vec<(VertexName, VertexOptions)>) -> Self
Converts to this type from the input type.
source§impl From<Vec<VertexName, Global>> for VertexListWithOptions
impl From<Vec<VertexName, Global>> for VertexListWithOptions
source§fn from(list: Vec<VertexName>) -> Self
fn from(list: Vec<VertexName>) -> Self
Converts to this type from the input type.