pub struct SubEntry<'a> { /* private fields */ }
Expand description

The contents of a sub-entry (such as rom or disk) that is a child of a ListInfo entry.

Sub-entries can not contain their own sub-entries and can only contain scalars or lists of scalars. For example, the rom entries in the following fragment are sub-entries.

game (
 rom (name "Rom 1")
 rom (name "Rom 2")
)

Implementations

Retrieves the value of an item data value in the sub-entry.

Gets the entry node with the given key if it exists.

This is shorthand for subentry.value("key").map(|f| f.unique().as_ref())

Gets the values with the given key if it exists.

This is shorthand for fragment.value("key").map(|f| f.iter().map(|&s| s))

Gets a key value iterator over the values of this fragment.

Trait Implementations

Formats the value using the given formatter. Read more

The type of the deserializer being converted into.

Convert this value into a deserializer.

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Compare self to key and return true if they are equal.

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.