Struct bevy_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
§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Convert
Box<dyn Trait>
(where Trait: Downcast
) to Box<dyn Any>
. Box<dyn Any>
can
then be further downcast
into Box<ConcreteType>
where ConcreteType
implements Trait
.§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Convert
Rc<Trait>
(where Trait: Downcast
) to Rc<Any>
. Rc<Any>
can then be
further downcast
into Rc<ConcreteType>
where ConcreteType
implements Trait
.§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
Convert
&Trait
(where Trait: Downcast
) to &Any
. This is needed since Rust cannot
generate &Any
’s vtable from &Trait
’s.§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
Convert
&mut Trait
(where Trait: Downcast
) to &Any
. This is needed since Rust cannot
generate &mut Any
’s vtable from &mut Trait
’s.§impl<T> DowncastSync for T
impl<T> DowncastSync for T
source§impl<T> FromWorld for Twhere
T: Default,
impl<T> FromWorld for Twhere
T: Default,
source§fn from_world(_world: &mut World) -> T
fn from_world(_world: &mut World) -> T
Creates
Self
using data from the given World
.