[−][src]Struct tabbycat::AttrList
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]
self,
iter: I
) -> Self
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]
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]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
impl<T> ToString for T where
T: Display + ?Sized,
[src]
T: Display + ?Sized,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,