Struct tfm::pl::ast::SingleValue
source · pub struct SingleValue<D> {
pub data: D,
pub data_span: Range<usize>,
}
Expand description
Value of a leaf node in the AST that contains a single piece of data.
An example of this node is the CHECKSUM
entry, which just contains a 32-bit checksum as data.
Fields§
§data: D
Data in this leaf node.
data_span: Range<usize>
Span of the data in the property list source code.
Trait Implementations§
source§impl<'a, D> Arbitrary<'a> for SingleValue<D>where
D: Arbitrary<'a>,
impl<'a, D> Arbitrary<'a> for SingleValue<D>where D: Arbitrary<'a>,
source§fn arbitrary(u: &mut Unstructured<'a>) -> Result<Self>
fn arbitrary(u: &mut Unstructured<'a>) -> Result<Self>
Generate an arbitrary value of
Self
from the given unstructured data. Read more§fn arbitrary_take_rest(u: Unstructured<'a>) -> Result<Self, Error>
fn arbitrary_take_rest(u: Unstructured<'a>) -> Result<Self, Error>
Generate an arbitrary value of
Self
from the entirety of the given
unstructured data. Read moresource§impl<D: Debug> Debug for SingleValue<D>
impl<D: Debug> Debug for SingleValue<D>
source§impl<D> From<D> for SingleValue<D>
impl<D> From<D> for SingleValue<D>
source§impl<D: PartialEq> PartialEq<SingleValue<D>> for SingleValue<D>
impl<D: PartialEq> PartialEq<SingleValue<D>> for SingleValue<D>
source§fn eq(&self, other: &SingleValue<D>) -> bool
fn eq(&self, other: &SingleValue<D>) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl<D: Eq> Eq for SingleValue<D>
impl<D> StructuralEq for SingleValue<D>
impl<D> StructuralPartialEq for SingleValue<D>
Auto Trait Implementations§
impl<D> RefUnwindSafe for SingleValue<D>where D: RefUnwindSafe,
impl<D> Send for SingleValue<D>where D: Send,
impl<D> Sync for SingleValue<D>where D: Sync,
impl<D> Unpin for SingleValue<D>where D: Unpin,
impl<D> UnwindSafe for SingleValue<D>where D: UnwindSafe,
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