Struct switchboard_solana::program_id::short_vec::ShortVec
pub struct ShortVec<T>(pub Vec<T>);
Tuple Fields§
§0: Vec<T>
Trait Implementations§
§impl<'de, T> Deserialize<'de> for ShortVec<T>where
T: Deserialize<'de>,
impl<'de, T> Deserialize<'de> for ShortVec<T>where
T: Deserialize<'de>,
§fn deserialize<D>(
deserializer: D
) -> Result<ShortVec<T>, <D as Deserializer<'de>>::Error>where
D: Deserializer<'de>,
fn deserialize<D>(
deserializer: D
) -> Result<ShortVec<T>, <D as Deserializer<'de>>::Error>where
D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
§impl<T> Serialize for ShortVec<T>where
T: Serialize,
impl<T> Serialize for ShortVec<T>where
T: Serialize,
§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
Auto Trait Implementations§
impl<T> Freeze for ShortVec<T>
impl<T> RefUnwindSafe for ShortVec<T>where
T: RefUnwindSafe,
impl<T> Send for ShortVec<T>where
T: Send,
impl<T> Sync for ShortVec<T>where
T: Sync,
impl<T> Unpin for ShortVec<T>where
T: Unpin,
impl<T> UnwindSafe for ShortVec<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
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