pub enum FilterValue {
Null,
Bool(bool),
Int(i64),
Float(f64),
Str(Vec<u8>),
Array(Vec<(Key, Value)>),
Object,
}Expand description
A PHP value given to or returned by filter_var().
Variants§
Null
PHP null.
Bool(bool)
A PHP bool.
Int(i64)
A PHP int.
Float(f64)
A PHP float.
Str(Vec<u8>)
A PHP string, as bytes.
Array(Vec<(Key, Value)>)
A PHP array, as its key-value pairs in order.
Object
A stdClass instance (no __toString()).
Trait Implementations§
impl StructuralPartialEq for Value
Auto Trait Implementations§
impl Forget for Value
impl Freeze for Value
impl Move for Value
impl RefUnwindSafe for Value
impl Send for Value
impl Sync for Value
impl Unpin for Value
impl UnsafeUnpin for Value
impl UnwindSafe for Value
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