pub struct IOValue(/* private fields */);
Expand description
A representation of a Preserves Value using Arc for reference-counting of subvalues and having IOValue as NestedValue::Embedded.
Trait Implementations§
source§impl<'de> Deserialize<'de> for IOValue
impl<'de> Deserialize<'de> for IOValue
source§fn deserialize<D>(deserializer: D) -> Result<Self, D::Error>where
D: Deserializer<'de>,
fn deserialize<D>(deserializer: D) -> Result<Self, D::Error>where
D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl DomainDecode<IOValue> for IOValueDomainCodec
impl DomainDecode<IOValue> for IOValueDomainCodec
fn decode_embedded<'de, 'src, S: BinarySource<'de>>( &mut self, src: &'src mut S, read_annotations: bool ) -> Result<IOValue>
source§impl DomainEncode<IOValue> for IOValueDomainCodec
impl DomainEncode<IOValue> for IOValueDomainCodec
source§impl NestedValue for IOValue
impl NestedValue for IOValue
§type Embedded = IOValue
type Embedded = IOValue
Every representation of Preserves values has an associated type: that of the Rust data
able to be embedded inside a value.
source§fn wrap(anns: Annotations<Self>, v: Value<Self>) -> Self
fn wrap(anns: Annotations<Self>, v: Value<Self>) -> Self
Attaches the given Annotations to the Value.
source§fn annotations(&self) -> &Annotations<Self>
fn annotations(&self) -> &Annotations<Self>
Retrieves any annotations attached to
self
.source§fn pieces(self) -> (Annotations<Self>, Value<Self>)
fn pieces(self) -> (Annotations<Self>, Value<Self>)
Consumes
self
, yielding its annotations and underlying Value.source§fn value_owned(self) -> Value<Self>
fn value_owned(self) -> Value<Self>
Consumes
self
, yielding its underlying Value and discarding its annotations.source§fn value_class(&self) -> ValueClass
fn value_class(&self) -> ValueClass
Retrieves the ValueClass of
self
.source§fn debug_fmt(&self, f: &mut Formatter<'_>) -> Result
fn debug_fmt(&self, f: &mut Formatter<'_>) -> Result
Supplies an opportunity to customize debug formatting for
self
. Defaults to writing
@
-prefixed annotations followed by the underlying value.source§fn strip_annotations<M: NestedValue<Embedded = Self::Embedded>>(&self) -> M
fn strip_annotations<M: NestedValue<Embedded = Self::Embedded>>(&self) -> M
Yields a deep copy of
self
with all annotations (recursively) removed.source§impl Ord for IOValue
impl Ord for IOValue
source§impl PartialEq for IOValue
impl PartialEq for IOValue
source§impl PartialOrd for IOValue
impl PartialOrd for IOValue
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moreimpl Eq for IOValue
impl StructuralPartialEq for IOValue
Auto Trait Implementations§
impl Freeze for IOValue
impl RefUnwindSafe for IOValue
impl Send for IOValue
impl Sync for IOValue
impl Unpin for IOValue
impl UnwindSafe for IOValue
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