pub enum Input<'a> {
Null,
Bool(bool),
Int(i64),
Float(f64),
Str(&'a [u8]),
Other,
}Expand description
A PHP value as the validators look at it: scalars by value, strings as bytes, and
everything else (arrays, objects, resources) as Input::Other, which no check here
accepts as a number or a string.
Variants§
Null
null.
Bool(bool)
A bool.
Int(i64)
An int.
Float(f64)
A float.
Str(&'a [u8])
A string, as bytes.
Other
An array, an object or a resource.
Implementations§
Trait Implementations§
impl<'a> Copy for Input<'a>
impl<'a> StructuralPartialEq for Input<'a>
Auto Trait Implementations§
impl<'a> Forget for Input<'a>
impl<'a> Freeze for Input<'a>
impl<'a> Move for Input<'a>
impl<'a> RefUnwindSafe for Input<'a>
impl<'a> Send for Input<'a>
impl<'a> Sync for Input<'a>
impl<'a> Unpin for Input<'a>
impl<'a> UnsafeUnpin for Input<'a>
impl<'a> UnwindSafe for Input<'a>
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