pub struct BytesValue {
pub value: Vec<u8>,
pub original: ValueSubTree,
}
Fields§
§value: Vec<u8>
§original: ValueSubTree
Implementations§
Trait Implementations§
Source§impl<Env> AnnotatedValue<Env, ManagedBuffer<<Env as TxEnv>::Api>> for &BytesValuewhere
Env: TxEnv,
impl<Env> AnnotatedValue<Env, ManagedBuffer<<Env as TxEnv>::Api>> for &BytesValuewhere
Env: TxEnv,
fn annotation(&self, _env: &Env) -> ManagedBuffer<<Env as TxEnv>::Api>
Source§fn to_value(&self, _env: &Env) -> ManagedBuffer<Env::Api>
fn to_value(&self, _env: &Env) -> ManagedBuffer<Env::Api>
Produces the value from a reference of the annotated type. Might involve a
.clone()
in some cases.Source§fn into_value(self, env: &Env) -> T
fn into_value(self, env: &Env) -> T
Consumes annotated value to produce actual value. Read more
Source§impl<Env> AnnotatedValue<Env, ManagedBuffer<<Env as TxEnv>::Api>> for BytesValuewhere
Env: TxEnv,
impl<Env> AnnotatedValue<Env, ManagedBuffer<<Env as TxEnv>::Api>> for BytesValuewhere
Env: TxEnv,
fn annotation(&self, _env: &Env) -> ManagedBuffer<<Env as TxEnv>::Api>
Source§fn to_value(&self, _env: &Env) -> ManagedBuffer<Env::Api>
fn to_value(&self, _env: &Env) -> ManagedBuffer<Env::Api>
Produces the value from a reference of the annotated type. Might involve a
.clone()
in some cases.Source§fn into_value(self, env: &Env) -> T
fn into_value(self, env: &Env) -> T
Consumes annotated value to produce actual value. Read more
Source§impl Checkable<&TxFunctionName> for BytesValue
impl Checkable<&TxFunctionName> for BytesValue
fn check(&self, value: &TxFunctionName) -> bool
Source§impl Clone for BytesValue
impl Clone for BytesValue
Source§fn clone(&self) -> BytesValue
fn clone(&self) -> BytesValue
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for BytesValue
impl Debug for BytesValue
Source§impl Default for BytesValue
impl Default for BytesValue
Source§impl Display for BytesValue
impl Display for BytesValue
Source§impl From<&[u8]> for BytesValue
impl From<&[u8]> for BytesValue
Source§impl From<&BytesKey> for BytesValue
impl From<&BytesKey> for BytesValue
Source§impl From<&BytesValue> for BytesValue
impl From<&BytesValue> for BytesValue
Source§fn from(from: &BytesValue) -> Self
fn from(from: &BytesValue) -> Self
Converts to this type from the input type.
Source§impl From<&str> for BytesValue
impl From<&str> for BytesValue
Source§impl From<(&str, &InterpreterContext)> for BytesValue
impl From<(&str, &InterpreterContext)> for BytesValue
Source§fn from(from: (&str, &InterpreterContext)) -> Self
fn from(from: (&str, &InterpreterContext)) -> Self
Converts to this type from the input type.
Source§impl From<()> for BytesValue
impl From<()> for BytesValue
Source§impl From<BytesKey> for BytesValue
impl From<BytesKey> for BytesValue
Source§impl From<String> for BytesValue
impl From<String> for BytesValue
Source§impl InterpretableFrom<&str> for BytesValue
impl InterpretableFrom<&str> for BytesValue
fn interpret_from(from: &str, context: &InterpreterContext) -> Self
Source§impl InterpretableFrom<String> for BytesValue
impl InterpretableFrom<String> for BytesValue
fn interpret_from(from: String, context: &InterpreterContext) -> Self
Source§impl InterpretableFrom<ValueSubTree> for BytesValue
impl InterpretableFrom<ValueSubTree> for BytesValue
fn interpret_from(from: ValueSubTree, context: &InterpreterContext) -> Self
Source§impl IntoRaw<ValueSubTree> for BytesValue
impl IntoRaw<ValueSubTree> for BytesValue
fn into_raw(self) -> ValueSubTree
impl<Env> TxCodeValue<Env> for &BytesValuewhere
Env: TxEnv,
impl<Env> TxCodeValue<Env> for BytesValuewhere
Env: TxEnv,
Auto Trait Implementations§
impl Freeze for BytesValue
impl RefUnwindSafe for BytesValue
impl Send for BytesValue
impl Sync for BytesValue
impl Unpin for BytesValue
impl UnwindSafe for BytesValue
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> InterpretableFrom<&T> for Twhere
T: Clone,
impl<T> InterpretableFrom<&T> for Twhere
T: Clone,
fn interpret_from(from: &T, _context: &InterpreterContext) -> T
Source§impl<T> InterpretableFrom<T> for T
impl<T> InterpretableFrom<T> for T
fn interpret_from(from: T, _context: &InterpreterContext) -> T
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