Struct listinfo::EntryFragment
source · [−]pub struct EntryFragment<'a> { /* private fields */ }
Expand description
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
sourceimpl<'a> EntryFragment<'a>
impl<'a> EntryFragment<'a>
sourcepub fn entry(&'a self, key: &str) -> Option<&'a Node<EntryData<'a>>>
pub fn entry(&'a self, key: &str) -> Option<&'a Node<EntryData<'a>>>
Gets the entry node with the given key if it exists.
sourcepub fn entry_unique(&'a self, key: &str) -> Option<&'a EntryData<'_>>
pub fn entry_unique(&'a self, key: &str) -> Option<&'a EntryData<'_>>
Gets the entry node with the given key if it exists.
This is shorthand for fragment.entry("key").map(|f| f.unique())
Trait Implementations
sourceimpl<'a> Debug for EntryFragment<'a>
impl<'a> Debug for EntryFragment<'a>
sourceimpl<'de> IntoDeserializer<'de, Error> for &'de EntryFragment<'de>
impl<'de> IntoDeserializer<'de, Error> for &'de EntryFragment<'de>
type Deserializer = EntryFragmentDeserializer<'de>
type Deserializer = EntryFragmentDeserializer<'de>
The type of the deserializer being converted into.
sourcefn into_deserializer(self) -> Self::Deserializer
fn into_deserializer(self) -> Self::Deserializer
Convert this value into a deserializer.
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
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more