pub enum PointerAction {
HandleAsScalar,
SliceBuilder,
SizedPointee,
}Expand description
Result of checking if a pointer type needs special handling.
Variants§
HandleAsScalar
Pointer to str (Cow<str>, &str, Arc<str>, Box<str>, Rc<str>) - should be handled as a scalar/string.
set_string_value already handles these via begin_smart_ptr internally.
SliceBuilder
Smart pointer with slice builder (Arc<[T]>, Box<[T]>) - deserialize as list, then end().
SizedPointee
Smart pointer with sized pointee (Arc<T>, Box<T>) - deserialize inner, then end().
Auto Trait Implementations§
impl Freeze for PointerAction
impl RefUnwindSafe for PointerAction
impl Send for PointerAction
impl Sync for PointerAction
impl Unpin for PointerAction
impl UnwindSafe for PointerAction
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