pub struct StaticLayerSpec {
pub source: StaticLayerSource,
pub cache_policy: RasterCachePolicy,
pub revision: &'static str,
pub opacity: u8,
pub offset_x: f32,
pub offset_y: f32,
pub memory_budget_bytes: usize,
pub background: StaticLayerBackground,
}Fields§
§source: StaticLayerSource§cache_policy: RasterCachePolicy§revision: &'static str§opacity: u8§offset_x: f32§offset_y: f32§memory_budget_bytes: usize§background: StaticLayerBackgroundImplementations§
Source§impl StaticLayerSpec
impl StaticLayerSpec
pub fn new(source: StaticLayerSource) -> Self
pub fn cache_policy(self, policy: RasterCachePolicy) -> Self
pub fn revision(self, revision: &'static str) -> Self
pub fn opacity(self, opacity: f32) -> Self
pub fn opacity_f32(&self) -> f32
pub fn paint_offset(self, x: f32, y: f32) -> Self
pub fn memory_budget_bytes(self, budget: usize) -> Self
pub fn background(self, background: StaticLayerBackground) -> Self
pub fn transparent_background(self) -> Self
pub fn cache_signature(&self) -> StaticLayerCacheSignature
Trait Implementations§
Source§impl Clone for StaticLayerSpec
impl Clone for StaticLayerSpec
Source§fn clone(&self) -> StaticLayerSpec
fn clone(&self) -> StaticLayerSpec
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for StaticLayerSpec
impl Debug for StaticLayerSpec
impl Eq for StaticLayerSpec
Source§impl Hash for StaticLayerSpec
impl Hash for StaticLayerSpec
Source§impl PartialEq for StaticLayerSpec
impl PartialEq for StaticLayerSpec
impl StructuralPartialEq for StaticLayerSpec
Auto Trait Implementations§
impl Freeze for StaticLayerSpec
impl RefUnwindSafe for StaticLayerSpec
impl Send for StaticLayerSpec
impl Sync for StaticLayerSpec
impl Unpin for StaticLayerSpec
impl UnsafeUnpin for StaticLayerSpec
impl UnwindSafe for StaticLayerSpec
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