Struct StyleLayerInfo
#[non_exhaustive]pub struct StyleLayerInfo {
pub id: String,
pub layer_type: String,
pub source_id: Option<String>,
pub source_layer: Option<String>,
}Expand description
Copied identity and source binding for one style layer.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.id: String§layer_type: StringStyle-spec layer type, such as line or background.
source_id: Option<String>Source ID, or None when the layer type takes no source.
source_layer: Option<String>Source-layer, or None when the layer names none.
Trait Implementations§
§impl Clone for StyleLayerInfo
impl Clone for StyleLayerInfo
§fn clone(&self) -> StyleLayerInfo
fn clone(&self) -> StyleLayerInfo
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 StyleLayerInfo
impl Debug for StyleLayerInfo
§impl PartialEq for StyleLayerInfo
impl PartialEq for StyleLayerInfo
impl Eq for StyleLayerInfo
impl StructuralPartialEq for StyleLayerInfo
Auto Trait Implementations§
impl Freeze for StyleLayerInfo
impl RefUnwindSafe for StyleLayerInfo
impl Send for StyleLayerInfo
impl Sync for StyleLayerInfo
impl Unpin for StyleLayerInfo
impl UnsafeUnpin for StyleLayerInfo
impl UnwindSafe for StyleLayerInfo
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