pub struct Uin(pub i64);Expand description
QQ 号。用 newtype 包住 i64,防止与普通整数混淆。serde 透明序列化为内层 i64。
Tuple Fields§
§0: i64Implementations§
Trait Implementations§
impl Copy for Uin
Source§impl<'de> Deserialize<'de> for Uin
impl<'de> Deserialize<'de> for Uin
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<Uin, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<Uin, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for Uin
Source§impl Serialize for Uin
impl Serialize for Uin
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
impl StructuralPartialEq for Uin
Auto Trait Implementations§
impl Freeze for Uin
impl RefUnwindSafe for Uin
impl Send for Uin
impl Sync for Uin
impl Unpin for Uin
impl UnsafeUnpin for Uin
impl UnwindSafe for Uin
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