[][src]Struct liberty_parse::liberty::Group

pub struct Group {
    pub type_: String,
    pub name: String,
    pub simple_attributes: HashMap<String, Value>,
    pub complex_attributes: HashMap<String, Vec<Value>>,
    pub groups: Vec<Group>,
}

General group struct

Groups contain simple attributes, complex attributes, and other groups

Fields

type_: Stringname: Stringsimple_attributes: HashMap<String, Value>complex_attributes: HashMap<String, Vec<Value>>groups: Vec<Group>

Methods

impl Group[src]

pub fn new(type_: &str, name: &str) -> Self[src]

Create a group with empty attributes and sub-groups

pub fn from_group_item(group_item: GroupItem) -> Self[src]

Convert an AST GroupItem::Group variant into a Group struct

pub fn into_group_item(self) -> GroupItem[src]

Convert a Liberty struct into a GroupItem::Group variant

Trait Implementations

impl Clone for Group[src]

fn clone_from(&mut self, source: &Self)1.0.0[src]

Performs copy-assignment from source. Read more

impl PartialEq<Group> for Group[src]

impl Debug for Group[src]

Auto Trait Implementations

impl Sync for Group

impl Send for Group

impl Unpin for Group

impl RefUnwindSafe for Group

impl UnwindSafe for Group

Blanket Implementations

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

type Owned = T

The resulting type after obtaining ownership.

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

impl<T, U> Into<U> for T where
    U: From<T>, 
[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.

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

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

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