pub struct CustomValueInfo<'info, TypeId: Clone> {
pub bytes: &'info [u8],
pub type_id: TypeId,
}Expand description
Information about a Custom Value.
Fields§
§bytes: &'info [u8]The bytes representing this custom value.
It is expected that these bytes are in the metadata and can be borrowed here.
type_id: TypeIdThe type of this custom value. Because custom values can be arbitrarily inserted, this has a higher likelihood of being invalid than many type IDs.
Auto Trait Implementations§
impl<'info, TypeId> Freeze for CustomValueInfo<'info, TypeId>where
TypeId: Freeze,
impl<'info, TypeId> RefUnwindSafe for CustomValueInfo<'info, TypeId>where
TypeId: RefUnwindSafe,
impl<'info, TypeId> Send for CustomValueInfo<'info, TypeId>where
TypeId: Send,
impl<'info, TypeId> Sync for CustomValueInfo<'info, TypeId>where
TypeId: Sync,
impl<'info, TypeId> Unpin for CustomValueInfo<'info, TypeId>where
TypeId: Unpin,
impl<'info, TypeId> UnwindSafe for CustomValueInfo<'info, TypeId>where
TypeId: 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