pub struct ZoomLevel(/* private fields */);
Available on crate features
events
and unstable-msc3488
only.Expand description
A zoom level.
This is an integer between 0 and 20 as defined in the OpenStreetMap Wiki.
Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for ZoomLevel
impl<'de> Deserialize<'de> for ZoomLevel
Source§fn deserialize<D>(
deserializer: D,
) -> Result<ZoomLevel, <D as Deserializer<'de>>::Error>where
D: Deserializer<'de>,
fn deserialize<D>(
deserializer: D,
) -> Result<ZoomLevel, <D as Deserializer<'de>>::Error>where
D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Serialize for ZoomLevel
impl Serialize for ZoomLevel
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
Auto Trait Implementations§
impl Freeze for ZoomLevel
impl RefUnwindSafe for ZoomLevel
impl Send for ZoomLevel
impl Sync for ZoomLevel
impl Unpin for ZoomLevel
impl UnwindSafe for ZoomLevel
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