pub struct WafArray { /* private fields */ }
Expand description
The WAF object representation of a value of type WafObjectType::Array
Implementations§
Source§impl WafArray
impl WafArray
Sourcepub const fn is_valid(&self) -> bool
pub const fn is_valid(&self) -> bool
Returns true if this WafArray is indeed WafObjectType::Array.
Sourcepub fn len(&self) -> usize
pub fn len(&self) -> usize
Returns the length of this WafArray
.
§Panics
Panics if the array is larger than usize::MAX
elements. This can only happen on
platforms where usize
is 32-bit wide.
Trait Implementations§
Source§impl AsRef<_ddwaf_object> for WafArray
impl AsRef<_ddwaf_object> for WafArray
Source§fn as_ref(&self) -> &ddwaf_object
fn as_ref(&self) -> &ddwaf_object
Converts this type into a shared reference of the (usually inferred) input type.
Source§impl IntoIterator for WafArray
impl IntoIterator for WafArray
Source§impl TypedWafObject for WafArray
impl TypedWafObject for WafArray
Source§const TYPE: WafObjectType = WafObjectType::Array
const TYPE: WafObjectType = WafObjectType::Array
The associated
WafObjectType
constant corresponding to the typed
object’s type discriminator.Auto Trait Implementations§
impl Freeze for WafArray
impl RefUnwindSafe for WafArray
impl Send for WafArray
impl Sync for WafArray
impl Unpin for WafArray
impl UnwindSafe for WafArray
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