pub struct FeatureStateSelector<'a> {
pub source_id: &'a str,
pub source_layer_id: &'a str,
pub feature_id: Option<FeatureId<'a>>,
pub state_key: &'a str,
}Expand description
The features whose state to set, read, or remove.
See mln_feature_state_selector in the
C API reference.
Fields§
§source_id: &'a str§source_layer_id: &'a strThe source layer, for a vector source. Empty for other sources.
feature_id: Option<FeatureId<'a>>The feature’s ID. Setting or reading state needs it. Without it,
MapHandle::remove_feature_state() removes the state of every feature
in the source layer.
state_key: &'a strThe one key that MapHandle::remove_feature_state() removes. It needs
feature_id. Empty removes every key.
Implementations§
Trait Implementations§
Source§impl<'a> Clone for FeatureStateSelector<'a>
impl<'a> Clone for FeatureStateSelector<'a>
Source§fn clone(&self) -> FeatureStateSelector<'a>
fn clone(&self) -> FeatureStateSelector<'a>
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 FeatureStateSelector<'a>
impl<'a> Debug for FeatureStateSelector<'a>
Source§impl<'a> PartialEq for FeatureStateSelector<'a>
impl<'a> PartialEq for FeatureStateSelector<'a>
impl<'a> StructuralPartialEq for FeatureStateSelector<'a>
Auto Trait Implementations§
impl<'a> Freeze for FeatureStateSelector<'a>
impl<'a> RefUnwindSafe for FeatureStateSelector<'a>
impl<'a> Send for FeatureStateSelector<'a>
impl<'a> Sync for FeatureStateSelector<'a>
impl<'a> Unpin for FeatureStateSelector<'a>
impl<'a> UnsafeUnpin for FeatureStateSelector<'a>
impl<'a> UnwindSafe for FeatureStateSelector<'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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> ErasedDestructor for Twhere
T: 'static,
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