pub struct VertexListWithOptions { /* private fields */ }Expand description
A list of VertexNames (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)>> for VertexListWithOptions
impl From<Vec<(VertexName, VertexOptions)>> 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>> for VertexListWithOptions
impl From<Vec<VertexName>> for VertexListWithOptions
Source§fn from(list: Vec<VertexName>) -> Self
fn from(list: Vec<VertexName>) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for VertexListWithOptions
impl !RefUnwindSafe for VertexListWithOptions
impl Send for VertexListWithOptions
impl Sync for VertexListWithOptions
impl Unpin for VertexListWithOptions
impl !UnwindSafe for VertexListWithOptions
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more