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<IOValue, <D as Deserializer<'de>>::Error>where
D: Deserializer<'de>,
fn deserialize<D>(
deserializer: D
) -> Result<IOValue, <D as Deserializer<'de>>::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>(
&mut self,
src: &'src mut S,
read_annotations: bool
) -> Result<IOValue, Error>where
S: BinarySource<'de>,
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<IOValue>, v: Value<IOValue>) -> IOValue
fn wrap(anns: Annotations<IOValue>, v: Value<IOValue>) -> IOValue
Attaches the given Annotations to the Value.
source§fn annotations(&self) -> &Annotations<IOValue>
fn annotations(&self) -> &Annotations<IOValue>
Retrieves any annotations attached to
self.source§fn pieces(self) -> (Annotations<IOValue>, Value<IOValue>)
fn pieces(self) -> (Annotations<IOValue>, Value<IOValue>)
Consumes
self, yielding its annotations and underlying Value.source§fn value_owned(self) -> Value<IOValue>
fn value_owned(self) -> Value<IOValue>
Consumes
self, yielding its underlying Value and discarding its annotations.source§fn bytestring<'a, V>(v: V) -> Self
fn bytestring<'a, V>(v: V) -> Self
Yields a Preserves
ByteString.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<(), Error>
fn debug_fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>
Supplies an opportunity to customize debug formatting for
self. Defaults to writing
@-prefixed annotations followed by the underlying value.source§fn strip_annotations<M>(&self) -> Mwhere
M: NestedValue<Embedded = Self::Embedded>,
fn strip_annotations<M>(&self) -> Mwhere
M: NestedValue<Embedded = Self::Embedded>,
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 moresource§impl Serialize for IOValue
impl Serialize for IOValue
source§fn serialize<S>(
&self,
serializer: S
) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error>where
S: Serializer,
fn serialize<S>(
&self,
serializer: S
) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error>where
S: Serializer,
Serialize this value into the given Serde serializer. Read more
impl Eq for IOValue
impl StructuralPartialEq for IOValue
Auto Trait Implementations§
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