Trait MapBuilder

Source
pub trait MapBuilder {
    type Out;

    // Required methods
    fn deser_default() -> Self;
    fn key(&mut self, k: &str) -> Result<&mut dyn Visitor>;
    fn take_out(&mut self) -> Option<Self::Out>
       where Self::Out: Sized;
}
Expand description

Internal implementation details

Required Associated Types§

Required Methods§

Source

fn deser_default() -> Self

Initial state for the builder. Note that this does not match the Default trait, it matches miniserde::Deserialize::default -> specifically we need Option<Option<>> to default to Some(None)

Source

fn key(&mut self, k: &str) -> Result<&mut dyn Visitor>

Source

fn take_out(&mut self) -> Option<Self::Out>
where Self::Out: Sized,

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§