Enum webpack_stats::Strings
source · [−]Expand description
Abstracts over json values that can be a string or a list of strings When possible, will store values as a &’de str when deserializing
Variants
Str(Cow<'a, I>)
Strs(Vec<Cow<'a, I>>)
Trait Implementations
sourceimpl<'de, 'a> Deserialize<'de> for Strings<'a, str> where
'de: 'a,
impl<'de, 'a> Deserialize<'de> for Strings<'a, str> where
'de: 'a,
sourcefn 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
sourceimpl<'a, I> IntoIterator for Strings<'a, I> where
I: ?Sized + ToOwned,
impl<'a, I> IntoIterator for Strings<'a, I> where
I: ?Sized + ToOwned,
Auto Trait Implementations
impl<'a, I: ?Sized> RefUnwindSafe for Strings<'a, I> where
I: RefUnwindSafe,
<I as ToOwned>::Owned: RefUnwindSafe,
impl<'a, I: ?Sized> Send for Strings<'a, I> where
I: Sync,
<I as ToOwned>::Owned: Send,
impl<'a, I: ?Sized> Sync for Strings<'a, I> where
I: Sync,
<I as ToOwned>::Owned: Sync,
impl<'a, I: ?Sized> Unpin for Strings<'a, I> where
<I as ToOwned>::Owned: Unpin,
impl<'a, I: ?Sized> UnwindSafe for Strings<'a, I> where
I: RefUnwindSafe,
<I as ToOwned>::Owned: UnwindSafe,
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more