Struct steamworks::NearFilter
source · pub struct NearFilter<'a>(pub LobbyKey<'a>, pub i32);
Expand description
A filter used for near-value sorting in lobby filtering.
This struct enables sorting the lobby results based on their closeness to a reference value. It includes two fields: the attribute key to use for sorting and the reference numerical value.
This filter does not perform actual filtering but rather sorts the results based on proximity.
§Fields
0
: The attribute key to use for sorting.1
: The reference numerical value used for sorting proximity.
Tuple Fields§
§0: LobbyKey<'a>
§1: i32
Trait Implementations§
source§impl<'a> Clone for NearFilter<'a>
impl<'a> Clone for NearFilter<'a>
source§fn clone(&self) -> NearFilter<'a>
fn clone(&self) -> NearFilter<'a>
Returns a copy 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<'a> Debug for NearFilter<'a>
impl<'a> Debug for NearFilter<'a>
source§impl<'a> Default for NearFilter<'a>
impl<'a> Default for NearFilter<'a>
source§fn default() -> NearFilter<'a>
fn default() -> NearFilter<'a>
Returns the “default value” for a type. Read more
source§impl<'a> PartialEq for NearFilter<'a>
impl<'a> PartialEq for NearFilter<'a>
source§fn eq(&self, other: &NearFilter<'a>) -> bool
fn eq(&self, other: &NearFilter<'a>) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl<'a> Copy for NearFilter<'a>
impl<'a> StructuralPartialEq for NearFilter<'a>
Auto Trait Implementations§
impl<'a> RefUnwindSafe for NearFilter<'a>
impl<'a> Send for NearFilter<'a>
impl<'a> Sync for NearFilter<'a>
impl<'a> Unpin for NearFilter<'a>
impl<'a> UnwindSafe for NearFilter<'a>
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