Enum mapboxgl::layer::LayoutProperty
source · pub enum LayoutProperty {
String(String),
Number(f64),
FeatureProperty((String, String)),
}
Expand description
Layout property can be either value in String or Number e.g. 0.25 or tuple of 2 elements, (“get”, “icon”).
Variants§
Trait Implementations§
source§impl Clone for LayoutProperty
impl Clone for LayoutProperty
source§fn clone(&self) -> LayoutProperty
fn clone(&self) -> LayoutProperty
Returns a copy 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 moresource§impl Debug for LayoutProperty
impl Debug for LayoutProperty
source§impl From<&str> for LayoutProperty
impl From<&str> for LayoutProperty
source§impl From<String> for LayoutProperty
impl From<String> for LayoutProperty
source§impl From<f64> for LayoutProperty
impl From<f64> for LayoutProperty
Auto Trait Implementations§
impl RefUnwindSafe for LayoutProperty
impl Send for LayoutProperty
impl Sync for LayoutProperty
impl Unpin for LayoutProperty
impl UnwindSafe for LayoutProperty
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