#[repr(C)]pub struct InteractionGroups {
pub memberships: Group,
pub filter: Group,
}
Fields§
§memberships: Group
§filter: Group
Implementations§
Source§impl InteractionGroups
impl InteractionGroups
Sourcepub const fn new(memberships: Group, filter: Group) -> Self
pub const fn new(memberships: Group, filter: Group) -> Self
Initializes with the given interaction groups and interaction mask.
Sourcepub const fn with_memberships(self, memberships: Group) -> Self
pub const fn with_memberships(self, memberships: Group) -> Self
Sets the group this filter is part of.
Sourcepub const fn with_filter(self, filter: Group) -> Self
pub const fn with_filter(self, filter: Group) -> Self
Sets the interaction mask of this filter.
Trait Implementations§
Source§impl Clone for InteractionGroups
impl Clone for InteractionGroups
Source§fn clone(&self) -> InteractionGroups
fn clone(&self) -> InteractionGroups
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 Debug for InteractionGroups
impl Debug for InteractionGroups
Source§impl Default for InteractionGroups
impl Default for InteractionGroups
Source§impl<'a> From<InteractionGroups> for QueryFilter<'a>
impl<'a> From<InteractionGroups> for QueryFilter<'a>
Source§fn from(groups: InteractionGroups) -> Self
fn from(groups: InteractionGroups) -> Self
Converts to this type from the input type.
Source§impl Hash for InteractionGroups
impl Hash for InteractionGroups
Source§impl PartialEq for InteractionGroups
impl PartialEq for InteractionGroups
impl Copy for InteractionGroups
impl Eq for InteractionGroups
impl StructuralPartialEq for InteractionGroups
Auto Trait Implementations§
impl Freeze for InteractionGroups
impl RefUnwindSafe for InteractionGroups
impl Send for InteractionGroups
impl Sync for InteractionGroups
impl Unpin for InteractionGroups
impl UnwindSafe for InteractionGroups
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more