Skip to main content

ddwaf_object

Type Alias ddwaf_object 

Source
pub type ddwaf_object = _ddwaf_object;

Aliased Type§

#[repr(C)]
pub union ddwaf_object { pub type_: u8, pub via: _ddwaf_object__bindgen_ty_1, }

Fields§

§type_: u8§via: _ddwaf_object__bindgen_ty_1

Implementations§

Source§

impl ddwaf_object

Source

pub unsafe fn drop_array(&mut self)

Drops the array data associated with the receiving ddwaf_object.

§Safety
Source

pub unsafe fn drop_map(&mut self)

Drops the map data associated with the receiving ddwaf_object.

§Safety
Source

pub unsafe fn drop_object(&mut self)

Drops the value associated with the receiving ddwaf_object.

§Safety

If the ddwaf_object is a string, array, or map, the respective requirements of the ddwaf_object::drop_string, ddwaf_object::drop_array, or ddwaf_object::drop_map methods apply. The method can’t be called more than once.

Source

pub unsafe fn drop_string(&mut self)

Drops the regular string associated with the receiving ddwaf_object.

§Safety
Source

pub fn obj_type(&self) -> DDWAF_OBJ_TYPE

Returns the type of the ddwaf_object

Source

pub fn is_string(&self) -> bool

Returns true if the ddwaf_object is a string.

Trait Implementations§

Source§

impl Debug for ddwaf_object

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl PartialEq for ddwaf_object

Source§

fn eq(&self, other: &ddwaf_object) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl Send for ddwaf_object

Source§

impl Sync for ddwaf_object