pub struct WorldMapCountry {
pub id: Cow<'static, str>,
pub name: Cow<'static, str>,
pub path: Cow<'static, str>,
pub label_x: f64,
pub label_y: f64,
pub bounds: WorldMapBounds,
}Expand description
One country’s projected SVG path and label anchor.
The bundled data comes from world_map_countries. Custom geometry can use
world_map_path_bounds to fill in bounds.
Fields§
§id: Cow<'static, str>ISO 3166-1 alpha-2 code where one exists, in uppercase. Somaliland uses SOL and
Northern Cyprus uses CYN.
name: Cow<'static, str>English display name.
path: Cow<'static, str>SVG path data in viewBox units, drawn with fill-rule: evenodd.
label_x: f64Horizontal position of the label anchor.
label_y: f64Vertical position of the label anchor.
bounds: WorldMapBoundsBounding box of path, used to fit highlighted countries.
Trait Implementations§
Source§impl Clone for WorldMapCountry
impl Clone for WorldMapCountry
Source§impl Debug for WorldMapCountry
impl Debug for WorldMapCountry
Source§impl PartialEq for WorldMapCountry
impl PartialEq for WorldMapCountry
impl StructuralPartialEq for WorldMapCountry
Auto Trait Implementations§
impl Forget for WorldMapCountry
impl Freeze for WorldMapCountry
impl Move for WorldMapCountry
impl RefUnwindSafe for WorldMapCountrywhere
String: RefUnwindSafe,
impl Send for WorldMapCountry
impl Sync for WorldMapCountry
impl Unpin for WorldMapCountry
impl UnsafeUnpin for WorldMapCountry
impl UnwindSafe for WorldMapCountry
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DependencyElement for T
impl<T> ErasedDestructor for Twhere
T: 'static,
Source§impl<T> InitializeFromFunction<T> for T
impl<T> InitializeFromFunction<T> for T
Source§fn initialize_from_function(f: fn() -> T) -> T
fn initialize_from_function(f: fn() -> T) -> T
Create an instance of this type from an initialization function
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§impl<Ret> SpawnIfAsync<(), Ret> for Ret
impl<Ret> SpawnIfAsync<(), Ret> for Ret
Source§impl<T, O> SuperFrom<T> for Owhere
O: From<T>,
impl<T, O> SuperFrom<T> for Owhere
O: From<T>,
Source§fn super_from(input: T) -> O
fn super_from(input: T) -> O
Convert from a type to another type.
Source§impl<T, O, M> SuperInto<O, M> for Twhere
O: SuperFrom<T, M>,
impl<T, O, M> SuperInto<O, M> for Twhere
O: SuperFrom<T, M>,
Source§fn super_into(self) -> O
fn super_into(self) -> O
Convert from a type to another type.