pub struct VectorStyleLayer {
pub meta: StyleLayerMeta,
pub source: StyleSourceId,
pub source_layer: Option<String>,
pub fill_color: StyleValue<[f32; 4]>,
pub stroke_color: StyleValue<[f32; 4]>,
pub stroke_width: StyleValue<f32>,
}Expand description
Legacy generic vector style spec.
Fields§
§meta: StyleLayerMeta§source: StyleSourceId§source_layer: Option<String>Optional source-layer name for vector-tile-like sources.
fill_color: StyleValue<[f32; 4]>§stroke_color: StyleValue<[f32; 4]>§stroke_width: StyleValue<f32>Implementations§
Trait Implementations§
Source§impl Clone for VectorStyleLayer
impl Clone for VectorStyleLayer
Source§fn clone(&self) -> VectorStyleLayer
fn clone(&self) -> VectorStyleLayer
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 VectorStyleLayer
impl RefUnwindSafe for VectorStyleLayer
impl Send for VectorStyleLayer
impl Sync for VectorStyleLayer
impl Unpin for VectorStyleLayer
impl UnsafeUnpin for VectorStyleLayer
impl UnwindSafe for VectorStyleLayer
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