pub struct FillStyleLayer {
pub meta: StyleLayerMeta,
pub source: StyleSourceId,
pub source_layer: Option<String>,
pub fill_color: StyleValue<[f32; 4]>,
pub outline_color: StyleValue<[f32; 4]>,
pub outline_width: StyleValue<f32>,
pub fill_pattern: Option<Arc<PatternImage>>,
}Expand description
Fill layer 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]>§outline_color: StyleValue<[f32; 4]>§outline_width: StyleValue<f32>§fill_pattern: Option<Arc<PatternImage>>Optional repeating pattern image for fill-pattern rendering.
When set, the fill is textured with the given pattern instead
of a solid colour. Matches MapLibre / Mapbox fill-pattern.
Implementations§
Trait Implementations§
Source§impl Clone for FillStyleLayer
impl Clone for FillStyleLayer
Source§fn clone(&self) -> FillStyleLayer
fn clone(&self) -> FillStyleLayer
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 FillStyleLayer
impl RefUnwindSafe for FillStyleLayer
impl Send for FillStyleLayer
impl Sync for FillStyleLayer
impl Unpin for FillStyleLayer
impl UnsafeUnpin for FillStyleLayer
impl UnwindSafe for FillStyleLayer
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