[][src]Struct tabbycat::AttrList

pub struct AttrList<'a>(_);

The list of attributes

Implementations

impl<'a> AttrList<'a>[src]

pub fn new() -> Self[src]

Create an empty attribute list

pub fn new_bracket(self) -> Self[src]

The dot language support multiple attribute lists with a syntax like:

A->B [color=red;][label="abc";];

This function is used to open a new bracket and later attributes will be added to the new one.

pub fn extend<I: IntoIterator<Item = AttrPair<'a>>>(self, iter: I) -> Self[src]

Append a list of new attributes to the current bracket

pub fn extend_list<I: IntoIterator<Item = Vec<AttrPair<'a>>>>(
    self,
    iter: I
) -> Self
[src]

Add a new attribute list

pub fn add(self, key: Identity<'a>, value: Identity<'a>) -> Self[src]

Add a new attribute

pub fn add_pair(self, pair: AttrPair<'a>) -> Self[src]

Add a new attribute (in pair)

Trait Implementations

impl<'a> Clone for AttrList<'a>[src]

impl<'a> Debug for AttrList<'a>[src]

impl<'a> Display for AttrList<'a>[src]

impl<'a> IntoIterator for AttrList<'a>[src]

type Item = Vec<(Identity<'a>, Identity<'a>)>

The type of the elements being iterated over.

type IntoIter = IntoIter<Vec<(Identity<'a>, Identity<'a>)>>

Which kind of iterator are we turning this into?

Auto Trait Implementations

impl<'a> RefUnwindSafe for AttrList<'a>[src]

impl<'a> Send for AttrList<'a>[src]

impl<'a> Sync for AttrList<'a>[src]

impl<'a> Unpin for AttrList<'a>[src]

impl<'a> UnwindSafe for AttrList<'a>[src]

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T> ToString for T where
    T: Display + ?Sized
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.