#[repr(u8)]pub enum JsonInput<'a> {
Single(Cow<'a, str>),
Multiple(&'a [&'a str]),
MultipleOwned(Vec<Cow<'a, str>>),
}Expand description
Input type for JSON flattening operations with Cow optimization
Variants§
Single(Cow<'a, str>)
Single JSON string with Cow for efficient memory usage
Multiple(&'a [&'a str])
Multiple JSON strings (borrowing)
MultipleOwned(Vec<Cow<'a, str>>)
Multiple JSON strings (owned)
Trait Implementations§
Auto Trait Implementations§
impl<'a> Freeze for JsonInput<'a>
impl<'a> RefUnwindSafe for JsonInput<'a>
impl<'a> Send for JsonInput<'a>
impl<'a> Sync for JsonInput<'a>
impl<'a> Unpin for JsonInput<'a>
impl<'a> UnsafeUnpin for JsonInput<'a>
impl<'a> UnwindSafe for JsonInput<'a>
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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 more