Struct FeatureStateSelector
#[non_exhaustive]pub struct FeatureStateSelector { /* private fields */ }Expand description
Source, feature, and state-key selector for render-session feature state.
Implementations§
§impl FeatureStateSelector
impl FeatureStateSelector
pub fn new(source_id: impl Into<String>) -> FeatureStateSelector
pub fn source_id(&self) -> &str
pub fn source_layer_id(&self) -> Option<&str>
pub fn feature_id(&self) -> Option<&str>
pub fn state_key(&self) -> Option<&str>
pub fn with_source_layer_id( self, source_layer_id: impl Into<String>, ) -> FeatureStateSelector
pub fn without_source_layer_id(self) -> FeatureStateSelector
pub fn with_feature_id( self, feature_id: impl Into<String>, ) -> FeatureStateSelector
pub fn without_feature_id(self) -> FeatureStateSelector
pub fn with_state_key( self, state_key: impl Into<String>, ) -> Result<FeatureStateSelector, Error>
pub fn without_state_key(self) -> FeatureStateSelector
Trait Implementations§
§impl Clone for FeatureStateSelector
impl Clone for FeatureStateSelector
§fn clone(&self) -> FeatureStateSelector
fn clone(&self) -> FeatureStateSelector
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 more§impl Debug for FeatureStateSelector
impl Debug for FeatureStateSelector
§impl PartialEq for FeatureStateSelector
impl PartialEq for FeatureStateSelector
impl Eq for FeatureStateSelector
impl StructuralPartialEq for FeatureStateSelector
Auto Trait Implementations§
impl Freeze for FeatureStateSelector
impl RefUnwindSafe for FeatureStateSelector
impl Send for FeatureStateSelector
impl Sync for FeatureStateSelector
impl Unpin for FeatureStateSelector
impl UnsafeUnpin for FeatureStateSelector
impl UnwindSafe for FeatureStateSelector
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