pub enum ParsedTuple {
Unit,
Single(Box<ParsedValue>),
Multiple(Box<[ParsedValue]>),
}Expand description
A parsed tuple.
Variants§
Trait Implementations§
Source§impl Clone for ParsedTuple
impl Clone for ParsedTuple
Source§fn clone(&self) -> ParsedTuple
fn clone(&self) -> ParsedTuple
Returns a duplicate 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 Compound<ParsedValue, ParsedText, ParsedDictionary, ParsedList, ParsedCompound, ParsedTuple, ParsedTaggedValue> for ParsedCompound
impl Compound<ParsedValue, ParsedText, ParsedDictionary, ParsedList, ParsedCompound, ParsedTuple, ParsedTaggedValue> for ParsedCompound
Source§type ElementIterator<'b> = ElementIterator<'b>
type ElementIterator<'b> = ElementIterator<'b>
Iterator over the elements in a compound.
Source§fn iter(&self) -> Self::ElementIterator<'_>
fn iter(&self) -> Self::ElementIterator<'_>
Iterate over the elements in this compound.
Source§impl Dictionary<ParsedValue, ParsedText, ParsedDictionary, ParsedList, ParsedCompound, ParsedTuple, ParsedTaggedValue> for ParsedDictionary
impl Dictionary<ParsedValue, ParsedText, ParsedDictionary, ParsedList, ParsedCompound, ParsedTuple, ParsedTaggedValue> for ParsedDictionary
type EntryIterator<'b> = EntryIterator<'b>
Source§fn iter(&self) -> Self::EntryIterator<'_>
fn iter(&self) -> Self::EntryIterator<'_>
Iterate over the entries in this dictionary.
Source§impl List<ParsedValue, ParsedText, ParsedDictionary, ParsedList, ParsedCompound, ParsedTuple, ParsedTaggedValue> for ParsedList
impl List<ParsedValue, ParsedText, ParsedDictionary, ParsedList, ParsedCompound, ParsedTuple, ParsedTaggedValue> for ParsedList
Source§type ListIterator<'b> = Iter<'b, ParsedValue>
type ListIterator<'b> = Iter<'b, ParsedValue>
Iterator over the entries in a table.
Source§fn get_element(&self, index: usize) -> Option<&ParsedValue>
fn get_element(&self, index: usize) -> Option<&ParsedValue>
Get the entry at index.
Source§fn iter(&self) -> Self::ListIterator<'_>
fn iter(&self) -> Self::ListIterator<'_>
Iterate over the entries in this list.
Source§impl Tagged<ParsedValue, ParsedText, ParsedDictionary, ParsedList, ParsedCompound, ParsedTuple, ParsedTaggedValue> for ParsedTaggedValue
impl Tagged<ParsedValue, ParsedText, ParsedDictionary, ParsedList, ParsedCompound, ParsedTuple, ParsedTaggedValue> for ParsedTaggedValue
Source§type AttributeIterator<'b> = AttributeIterator<'b>
type AttributeIterator<'b> = AttributeIterator<'b>
Iterator over tag attributes.
Source§fn has_attributes(&self) -> bool
fn has_attributes(&self) -> bool
Check if this tag has attributes.
Source§fn get_attribute_by(&self, key: &str) -> Option<AttributeValue<'_>>
fn get_attribute_by(&self, key: &str) -> Option<AttributeValue<'_>>
Get the attribute by key.
Source§fn iter_attributes(&self) -> Self::AttributeIterator<'_>
fn iter_attributes(&self) -> Self::AttributeIterator<'_>
Iterate over the attributes of this tag.
Source§fn get(&self) -> &ParsedValue
fn get(&self) -> &ParsedValue
Get the tagged value.
Source§impl Text<ParsedValue, ParsedText, ParsedDictionary, ParsedList, ParsedCompound, ParsedTuple, ParsedTaggedValue> for ParsedText
impl Text<ParsedValue, ParsedText, ParsedDictionary, ParsedList, ParsedCompound, ParsedTuple, ParsedTaggedValue> for ParsedText
Source§impl Tuple<ParsedValue, ParsedText, ParsedDictionary, ParsedList, ParsedCompound, ParsedTuple, ParsedTaggedValue> for ParsedTuple
impl Tuple<ParsedValue, ParsedText, ParsedDictionary, ParsedList, ParsedCompound, ParsedTuple, ParsedTaggedValue> for ParsedTuple
type TupleIterator<'b> = TupleIterator<'b>
Source§fn iter(&self) -> Self::TupleIterator<'_>
fn iter(&self) -> Self::TupleIterator<'_>
Iterate over the elements in this tuple.
Source§impl Value<ParsedValue, ParsedText, ParsedDictionary, ParsedList, ParsedCompound, ParsedTuple, ParsedTaggedValue> for ParsedValue
impl Value<ParsedValue, ParsedText, ParsedDictionary, ParsedList, ParsedCompound, ParsedTuple, ParsedTaggedValue> for ParsedValue
Source§fn is_dictionary(&self) -> bool
fn is_dictionary(&self) -> bool
Check if this is a dictionary.
Source§fn is_compound(&self) -> bool
fn is_compound(&self) -> bool
Check if this is a compound.
Source§fn as_text(&self) -> Option<&ParsedText>
fn as_text(&self) -> Option<&ParsedText>
Get as text.
Source§fn as_tagged(&self) -> Option<&ParsedTaggedValue>
fn as_tagged(&self) -> Option<&ParsedTaggedValue>
Get as a tagged value.
Source§fn as_tuple(&self) -> Option<&ParsedTuple>
fn as_tuple(&self) -> Option<&ParsedTuple>
Get as a tuple.
Source§fn as_dictionary(&self) -> Option<&ParsedDictionary>
fn as_dictionary(&self) -> Option<&ParsedDictionary>
Get as a dictionary.
Source§fn as_list(&self) -> Option<&ParsedList>
fn as_list(&self) -> Option<&ParsedList>
Get as a table.
Source§fn as_compound(&self) -> Option<&ParsedCompound>
fn as_compound(&self) -> Option<&ParsedCompound>
Get as a compound.
Source§fn as_mut_text(&mut self) -> Option<&mut ParsedText>
fn as_mut_text(&mut self) -> Option<&mut ParsedText>
Get as text.
Source§fn as_mut_tagged(&mut self) -> Option<&mut ParsedTaggedValue>
fn as_mut_tagged(&mut self) -> Option<&mut ParsedTaggedValue>
Get as a tagged value.
Source§fn as_mut_tuple(&mut self) -> Option<&mut ParsedTuple>
fn as_mut_tuple(&mut self) -> Option<&mut ParsedTuple>
Get as a tuple.
Source§fn as_mut_dictionary(&mut self) -> Option<&mut ParsedDictionary>
fn as_mut_dictionary(&mut self) -> Option<&mut ParsedDictionary>
Get as a dictionary.
Source§fn as_mut_list(&mut self) -> Option<&mut ParsedList>
fn as_mut_list(&mut self) -> Option<&mut ParsedList>
Get as a table.
Source§fn as_mut_compound(&mut self) -> Option<&mut ParsedCompound>
fn as_mut_compound(&mut self) -> Option<&mut ParsedCompound>
Get as a compound.
Source§fn iter_as_tuple<'b>(&'b self) -> impl Iterator<Item = &'b ParsedValue>where
Self: 'b,
fn iter_as_tuple<'b>(&'b self) -> impl Iterator<Item = &'b ParsedValue>where
Self: 'b,
Iterate as a tuple. Read more
Source§fn len_as_tuple(&self) -> usize
fn len_as_tuple(&self) -> usize
Get the length of this value as a tuple. Read more
Auto Trait Implementations§
impl Freeze for ParsedTuple
impl RefUnwindSafe for ParsedTuple
impl !Send for ParsedTuple
impl !Sync for ParsedTuple
impl Unpin for ParsedTuple
impl UnwindSafe for ParsedTuple
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