Struct o1_utils::serialization::SerdeAsUnchecked
source · pub struct SerdeAsUnchecked;
Expand description
Same as SerdeAs
but using unchecked and uncompressed (de)serialization.
Trait Implementations§
source§impl<'de, T> DeserializeAs<'de, T> for SerdeAsUncheckedwhere
T: CanonicalDeserialize,
impl<'de, T> DeserializeAs<'de, T> for SerdeAsUncheckedwhere T: CanonicalDeserialize,
source§fn deserialize_as<D>(deserializer: D) -> Result<T, D::Error>where
D: Deserializer<'de>,
fn deserialize_as<D>(deserializer: D) -> Result<T, D::Error>where D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer.
source§impl<T> SerializeAs<T> for SerdeAsUncheckedwhere
T: CanonicalSerialize,
impl<T> SerializeAs<T> for SerdeAsUncheckedwhere T: CanonicalSerialize,
source§fn serialize_as<S>(val: &T, serializer: S) -> Result<S::Ok, S::Error>where
S: Serializer,
fn serialize_as<S>(val: &T, serializer: S) -> Result<S::Ok, S::Error>where S: Serializer,
Serialize this value into the given Serde serializer.
Auto Trait Implementations§
impl RefUnwindSafe for SerdeAsUnchecked
impl Send for SerdeAsUnchecked
impl Sync for SerdeAsUnchecked
impl Unpin for SerdeAsUnchecked
impl UnwindSafe for SerdeAsUnchecked
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