pub struct IntString<T>(pub T);Expand description
A small wrapper around T which implements serialization with
T::to_string and T::parse.
Tuple Fields§
§0: TTrait Implementations§
Source§impl<'de, T: FromStr> Deserialize<'de> for IntString<T>
impl<'de, T: FromStr> Deserialize<'de> for IntString<T>
Source§fn deserialize<D>(d: D) -> Result<IntString<T>, D::Error>where
D: Deserializer<'de>,
fn deserialize<D>(d: D) -> Result<IntString<T>, D::Error>where
D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl<T: Copy> Copy for IntString<T>
Auto Trait Implementations§
impl<T> Freeze for IntString<T>where
T: Freeze,
impl<T> RefUnwindSafe for IntString<T>where
T: RefUnwindSafe,
impl<T> Send for IntString<T>where
T: Send,
impl<T> Sync for IntString<T>where
T: Sync,
impl<T> Unpin for IntString<T>where
T: Unpin,
impl<T> UnwindSafe for IntString<T>where
T: UnwindSafe,
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