pub struct StyleLayerMeta {
pub id: StyleLayerId,
pub name: String,
pub visible: StyleValue<bool>,
pub opacity: StyleValue<f32>,
pub min_zoom: Option<f32>,
pub max_zoom: Option<f32>,
}Expand description
Shared style-layer metadata.
Fields§
§id: StyleLayerIdStable style-layer id.
name: StringHuman-readable layer name.
visible: StyleValue<bool>Whether the layer is visible.
opacity: StyleValue<f32>Layer opacity in [0, 1].
min_zoom: Option<f32>Optional minimum zoom for visibility.
max_zoom: Option<f32>Optional maximum zoom for visibility.
Implementations§
Trait Implementations§
Source§impl Clone for StyleLayerMeta
impl Clone for StyleLayerMeta
Source§fn clone(&self) -> StyleLayerMeta
fn clone(&self) -> StyleLayerMeta
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 moreAuto Trait Implementations§
impl Freeze for StyleLayerMeta
impl RefUnwindSafe for StyleLayerMeta
impl Send for StyleLayerMeta
impl Sync for StyleLayerMeta
impl Unpin for StyleLayerMeta
impl UnsafeUnpin for StyleLayerMeta
impl UnwindSafe for StyleLayerMeta
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