pub struct ProvinceId(/* private fields */);Expand description
An province numerical identifier
Handles negative identifiers by taking their absolute value.
let _ = eu4save::ProvinceId::new(10);Implementations§
Trait Implementations§
Source§impl Clone for ProvinceId
impl Clone for ProvinceId
Source§fn clone(&self) -> ProvinceId
fn clone(&self) -> ProvinceId
Returns a duplicate 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 ProvinceId
impl Debug for ProvinceId
Source§impl Default for ProvinceId
impl Default for ProvinceId
Source§fn default() -> ProvinceId
fn default() -> ProvinceId
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for ProvinceId
impl<'de> Deserialize<'de> for ProvinceId
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Display for ProvinceId
impl Display for ProvinceId
Source§impl From<i32> for ProvinceId
impl From<i32> for ProvinceId
Source§impl Hash for ProvinceId
impl Hash for ProvinceId
Source§impl Ord for ProvinceId
impl Ord for ProvinceId
Source§fn cmp(&self, other: &ProvinceId) -> Ordering
fn cmp(&self, other: &ProvinceId) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for ProvinceId
impl PartialEq for ProvinceId
Source§impl PartialOrd for ProvinceId
impl PartialOrd for ProvinceId
Source§impl Serialize for ProvinceId
impl Serialize for ProvinceId
impl Copy for ProvinceId
impl Eq for ProvinceId
impl StructuralPartialEq for ProvinceId
Auto Trait Implementations§
impl Freeze for ProvinceId
impl RefUnwindSafe for ProvinceId
impl Send for ProvinceId
impl Sync for ProvinceId
impl Unpin for ProvinceId
impl UnwindSafe for ProvinceId
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