#[repr(C, packed(1))]pub struct StaticFilterWithPosition {
pub position: u32,
pub static_filter: StaticFilter,
}Expand description
This structure combines a StaticFilter with a position value that specifies where in
the static filter list the filter should be inserted. The position is a zero-based index;
lower values indicate higher priority because filters are processed in ascending order.
- Rust equivalent for _STATIC_FILTER_WITH_POSITION
Fields§
§position: u32The position in the filter list where the new filter should be inserted.
static_filter: StaticFilterThe StaticFilter structure that defines the filter criteria and actions.
Implementations§
Source§impl StaticFilterWithPosition
impl StaticFilterWithPosition
Sourcepub fn new(static_filter: StaticFilter, position: u32) -> Self
pub fn new(static_filter: StaticFilter, position: u32) -> Self
Creates a new StaticFilterWithPosition from the given filter and position.
§Arguments
static_filter- TheStaticFilterto be inserted.position- The zero-based position at which the filter should be inserted.
Trait Implementations§
Source§impl Clone for StaticFilterWithPosition
impl Clone for StaticFilterWithPosition
Source§fn clone(&self) -> StaticFilterWithPosition
fn clone(&self) -> StaticFilterWithPosition
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Default for StaticFilterWithPosition
impl Default for StaticFilterWithPosition
Source§fn default() -> StaticFilterWithPosition
fn default() -> StaticFilterWithPosition
Returns the “default value” for a type. Read more
impl Copy for StaticFilterWithPosition
Auto Trait Implementations§
impl Freeze for StaticFilterWithPosition
impl RefUnwindSafe for StaticFilterWithPosition
impl Send for StaticFilterWithPosition
impl Sync for StaticFilterWithPosition
impl Unpin for StaticFilterWithPosition
impl UnsafeUnpin for StaticFilterWithPosition
impl UnwindSafe for StaticFilterWithPosition
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