#[repr(C)]pub struct ArchivedCitiesRecordwhere
u32: Archive,
String: Archive,
f32: Archive,
Option<Country>: Archive,
Option<AdminDivision>: Archive,
Option<HashMap<String, String>>: Archive,{Show 13 fields
pub id: <u32 as Archive>::Archived,
pub name: <String as Archive>::Archived,
pub latitude: <f32 as Archive>::Archived,
pub longitude: <f32 as Archive>::Archived,
pub country: <Option<Country> as Archive>::Archived,
pub admin_division: <Option<AdminDivision> as Archive>::Archived,
pub admin2_division: <Option<AdminDivision> as Archive>::Archived,
pub timezone: <String as Archive>::Archived,
pub names: <Option<HashMap<String, String>> as Archive>::Archived,
pub country_names: <Option<HashMap<String, String>> as Archive>::Archived,
pub admin1_names: <Option<HashMap<String, String>> as Archive>::Archived,
pub admin2_names: <Option<HashMap<String, String>> as Archive>::Archived,
pub population: <u32 as Archive>::Archived,
}
Expand description
An archived CitiesRecord
Fields§
§id: <u32 as Archive>::Archived
§name: <String as Archive>::Archived
§latitude: <f32 as Archive>::Archived
§longitude: <f32 as Archive>::Archived
§country: <Option<Country> as Archive>::Archived
§admin_division: <Option<AdminDivision> as Archive>::Archived
§admin2_division: <Option<AdminDivision> as Archive>::Archived
§timezone: <String as Archive>::Archived
§names: <Option<HashMap<String, String>> as Archive>::Archived
§country_names: <Option<HashMap<String, String>> as Archive>::Archived
§admin1_names: <Option<HashMap<String, String>> as Archive>::Archived
§admin2_names: <Option<HashMap<String, String>> as Archive>::Archived
§population: <u32 as Archive>::Archived
Trait Implementations§
Source§impl<__C: Fallible + ?Sized> CheckBytes<__C> for ArchivedCitiesRecordwhere
u32: Archive,
String: Archive,
f32: Archive,
Option<Country>: Archive,
Option<AdminDivision>: Archive,
Option<HashMap<String, String>>: Archive,
<__C as Fallible>::Error: Trace,
<u32 as Archive>::Archived: CheckBytes<__C>,
<String as Archive>::Archived: CheckBytes<__C>,
<f32 as Archive>::Archived: CheckBytes<__C>,
<Option<Country> as Archive>::Archived: CheckBytes<__C>,
<Option<AdminDivision> as Archive>::Archived: CheckBytes<__C>,
<Option<HashMap<String, String>> as Archive>::Archived: CheckBytes<__C>,
impl<__C: Fallible + ?Sized> CheckBytes<__C> for ArchivedCitiesRecordwhere
u32: Archive,
String: Archive,
f32: Archive,
Option<Country>: Archive,
Option<AdminDivision>: Archive,
Option<HashMap<String, String>>: Archive,
<__C as Fallible>::Error: Trace,
<u32 as Archive>::Archived: CheckBytes<__C>,
<String as Archive>::Archived: CheckBytes<__C>,
<f32 as Archive>::Archived: CheckBytes<__C>,
<Option<Country> as Archive>::Archived: CheckBytes<__C>,
<Option<AdminDivision> as Archive>::Archived: CheckBytes<__C>,
<Option<HashMap<String, String>> as Archive>::Archived: CheckBytes<__C>,
Source§impl Debug for ArchivedCitiesRecord
impl Debug for ArchivedCitiesRecord
Source§impl Serialize for ArchivedCitiesRecord
impl Serialize for ArchivedCitiesRecord
impl Portable for ArchivedCitiesRecordwhere
u32: Archive,
String: Archive,
f32: Archive,
Option<Country>: Archive,
Option<AdminDivision>: Archive,
Option<HashMap<String, String>>: Archive,
<u32 as Archive>::Archived: Portable,
<String as Archive>::Archived: Portable,
<f32 as Archive>::Archived: Portable,
<Option<Country> as Archive>::Archived: Portable,
<Option<AdminDivision> as Archive>::Archived: Portable,
<Option<HashMap<String, String>> as Archive>::Archived: Portable,
Auto Trait Implementations§
impl Freeze for ArchivedCitiesRecord
impl RefUnwindSafe for ArchivedCitiesRecord
impl Send for ArchivedCitiesRecord
impl Sync for ArchivedCitiesRecord
impl !Unpin for ArchivedCitiesRecord
impl UnwindSafe for ArchivedCitiesRecord
Blanket Implementations§
Source§impl<T> ArchivePointee for T
impl<T> ArchivePointee for T
Source§type ArchivedMetadata = ()
type ArchivedMetadata = ()
The archived version of the pointer metadata for this type.
Source§fn pointer_metadata(
_: &<T as ArchivePointee>::ArchivedMetadata,
) -> <T as Pointee>::Metadata
fn pointer_metadata( _: &<T as ArchivePointee>::ArchivedMetadata, ) -> <T as Pointee>::Metadata
Converts some archived metadata to the pointer metadata for itself.
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> CheckedAs for T
impl<T> CheckedAs for T
Source§fn checked_as<Dst>(self) -> Option<Dst>where
T: CheckedCast<Dst>,
fn checked_as<Dst>(self) -> Option<Dst>where
T: CheckedCast<Dst>,
Casts the value.
Source§impl<Src, Dst> CheckedCastFrom<Src> for Dstwhere
Src: CheckedCast<Dst>,
impl<Src, Dst> CheckedCastFrom<Src> for Dstwhere
Src: CheckedCast<Dst>,
Source§fn checked_cast_from(src: Src) -> Option<Dst>
fn checked_cast_from(src: Src) -> Option<Dst>
Casts the value.
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<T> LayoutRaw for T
impl<T> LayoutRaw for T
Source§fn layout_raw(_: <T as Pointee>::Metadata) -> Result<Layout, LayoutError>
fn layout_raw(_: <T as Pointee>::Metadata) -> Result<Layout, LayoutError>
Returns the layout of the type.
Source§impl<T, N1, N2> Niching<NichedOption<T, N1>> for N2
impl<T, N1, N2> Niching<NichedOption<T, N1>> for N2
Source§unsafe fn is_niched(niched: *const NichedOption<T, N1>) -> bool
unsafe fn is_niched(niched: *const NichedOption<T, N1>) -> bool
Returns whether the given value has been niched. Read more
Source§fn resolve_niched(out: Place<NichedOption<T, N1>>)
fn resolve_niched(out: Place<NichedOption<T, N1>>)
Writes data to
out
indicating that a T
is niched.Source§impl<T> OverflowingAs for T
impl<T> OverflowingAs for T
Source§fn overflowing_as<Dst>(self) -> (Dst, bool)where
T: OverflowingCast<Dst>,
fn overflowing_as<Dst>(self) -> (Dst, bool)where
T: OverflowingCast<Dst>,
Casts the value.
Source§impl<Src, Dst> OverflowingCastFrom<Src> for Dstwhere
Src: OverflowingCast<Dst>,
impl<Src, Dst> OverflowingCastFrom<Src> for Dstwhere
Src: OverflowingCast<Dst>,
Source§fn overflowing_cast_from(src: Src) -> (Dst, bool)
fn overflowing_cast_from(src: Src) -> (Dst, bool)
Casts the value.
Source§impl<T> Pointable for T
impl<T> Pointable for T
Source§impl<T> SaturatingAs for T
impl<T> SaturatingAs for T
Source§fn saturating_as<Dst>(self) -> Dstwhere
T: SaturatingCast<Dst>,
fn saturating_as<Dst>(self) -> Dstwhere
T: SaturatingCast<Dst>,
Casts the value.
Source§impl<Src, Dst> SaturatingCastFrom<Src> for Dstwhere
Src: SaturatingCast<Dst>,
impl<Src, Dst> SaturatingCastFrom<Src> for Dstwhere
Src: SaturatingCast<Dst>,
Source§fn saturating_cast_from(src: Src) -> Dst
fn saturating_cast_from(src: Src) -> Dst
Casts the value.
Source§impl<T> UnwrappedAs for T
impl<T> UnwrappedAs for T
Source§fn unwrapped_as<Dst>(self) -> Dstwhere
T: UnwrappedCast<Dst>,
fn unwrapped_as<Dst>(self) -> Dstwhere
T: UnwrappedCast<Dst>,
Casts the value.
Source§impl<Src, Dst> UnwrappedCastFrom<Src> for Dstwhere
Src: UnwrappedCast<Dst>,
impl<Src, Dst> UnwrappedCastFrom<Src> for Dstwhere
Src: UnwrappedCast<Dst>,
Source§fn unwrapped_cast_from(src: Src) -> Dst
fn unwrapped_cast_from(src: Src) -> Dst
Casts the value.
Source§impl<T> WrappingAs for T
impl<T> WrappingAs for T
Source§fn wrapping_as<Dst>(self) -> Dstwhere
T: WrappingCast<Dst>,
fn wrapping_as<Dst>(self) -> Dstwhere
T: WrappingCast<Dst>,
Casts the value.
Source§impl<Src, Dst> WrappingCastFrom<Src> for Dstwhere
Src: WrappingCast<Dst>,
impl<Src, Dst> WrappingCastFrom<Src> for Dstwhere
Src: WrappingCast<Dst>,
Source§fn wrapping_cast_from(src: Src) -> Dst
fn wrapping_cast_from(src: Src) -> Dst
Casts the value.