pub struct ArrayCoercer { /* private fields */ }
Implementations§
Source§impl ArrayCoercer
impl ArrayCoercer
pub fn new() -> ArrayCoercer
pub fn encoded(separator: String) -> ArrayCoercer
pub fn encoded_of( separator: String, sub_coercer: Box<dyn Coercer + Send + Sync>, ) -> ArrayCoercer
pub fn of_type(sub_coercer: Box<dyn Coercer + Send + Sync>) -> ArrayCoercer
Trait Implementations§
Source§impl Coercer for ArrayCoercer
impl Coercer for ArrayCoercer
fn get_primitive_type(&self) -> PrimitiveType
fn coerce( &self, val: &mut Value, path: &str, ) -> Result<Option<Value>, ValicoErrors>
Auto Trait Implementations§
impl Freeze for ArrayCoercer
impl !RefUnwindSafe for ArrayCoercer
impl Send for ArrayCoercer
impl Sync for ArrayCoercer
impl Unpin for ArrayCoercer
impl !UnwindSafe for ArrayCoercer
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