[−][src]Struct listinfo::EntryFragment
Represents a single ListInfo entry fragment.
An entry fragment is a top level element in a ListInfo DAT document.
The following is an example of a clrmamepro
fragment with a name
element.
clrmamepro (
name "DAT file."
)
Implementations
impl<'a> EntryFragment<'a>
[src]
pub fn entry(&'a self, key: &str) -> Option<&'a Node<EntryData<'a>>>
[src]
Gets the entry node with the given key if it exists.
pub fn entry_unique(&'a self, key: &str) -> Option<&'a EntryData>
[src]
Gets the entry node with the given key if it exists.
This is shorthand for fragment.entry("key").map(|f| f.unique())
pub fn entry_iter(
&'a self,
key: &str
) -> Option<impl Iterator<Item = &'a EntryData>>
[src]
&'a self,
key: &str
) -> Option<impl Iterator<Item = &'a EntryData>>
Gets the values with the given key if it exists.
This is shorthand for fragment.entry("key").map(|f| f.iter())
pub fn iter(&'a self) -> EntryIter<'a, Node<EntryData<'a>>>
[src]
Gets an iterator over the entries of this fragment.
Trait Implementations
impl<'a> Debug for EntryFragment<'a>
[src]
impl<'de> IntoDeserializer<'de, Error> for &'de EntryFragment<'de>
[src]
type Deserializer = FragmentDeserializer<'de>
The type of the deserializer being converted into.
fn into_deserializer(self) -> Self::Deserializer
[src]
Auto Trait Implementations
impl<'a> RefUnwindSafe for EntryFragment<'a>
impl<'a> Send for EntryFragment<'a>
impl<'a> Sync for EntryFragment<'a>
impl<'a> Unpin for EntryFragment<'a>
impl<'a> UnwindSafe for EntryFragment<'a>
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,
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, 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.
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>,