pub struct ConstantValueNode {
pub type: Box<TypeNode>,
pub value: Box<ValueNode>,
}
Fields§
§type: Box<TypeNode>
§value: Box<ValueNode>
Implementations§
Source§impl ConstantValueNode
impl ConstantValueNode
pub fn new<T, U>(type: T, value: U) -> ConstantValueNode
pub fn bytes<T>(encoding: BytesEncoding, data: T) -> ConstantValueNode
Trait Implementations§
Source§impl Clone for ConstantValueNode
impl Clone for ConstantValueNode
Source§fn clone(&self) -> ConstantValueNode
fn clone(&self) -> ConstantValueNode
Returns a duplicate 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 ConstantValueNode
impl Debug for ConstantValueNode
Source§impl<'de> Deserialize<'de> for ConstantValueNode
impl<'de> Deserialize<'de> for ConstantValueNode
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<ConstantValueNode, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<ConstantValueNode, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl From<ConstantValueNode> for InstructionInputValueNode
impl From<ConstantValueNode> for InstructionInputValueNode
Source§fn from(value: ConstantValueNode) -> InstructionInputValueNode
fn from(value: ConstantValueNode) -> InstructionInputValueNode
Converts to this type from the input type.
Source§impl From<ConstantValueNode> for Node
impl From<ConstantValueNode> for Node
Source§fn from(val: ConstantValueNode) -> Node
fn from(val: ConstantValueNode) -> Node
Converts to this type from the input type.
Source§impl From<ConstantValueNode> for PdaSeedValueValueNode
impl From<ConstantValueNode> for PdaSeedValueValueNode
Source§fn from(value: ConstantValueNode) -> PdaSeedValueValueNode
fn from(value: ConstantValueNode) -> PdaSeedValueValueNode
Converts to this type from the input type.
Source§impl From<ConstantValueNode> for RegisteredValueNode
impl From<ConstantValueNode> for RegisteredValueNode
Source§fn from(value: ConstantValueNode) -> RegisteredValueNode
fn from(value: ConstantValueNode) -> RegisteredValueNode
Converts to this type from the input type.
Source§impl From<ConstantValueNode> for ValueNode
impl From<ConstantValueNode> for ValueNode
Source§fn from(value: ConstantValueNode) -> ValueNode
fn from(value: ConstantValueNode) -> ValueNode
Converts to this type from the input type.
Source§impl NodeTrait for ConstantValueNode
impl NodeTrait for ConstantValueNode
Source§impl PartialEq for ConstantValueNode
impl PartialEq for ConstantValueNode
Source§impl Serialize for ConstantValueNode
impl Serialize for ConstantValueNode
Source§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
impl StructuralPartialEq for ConstantValueNode
Auto Trait Implementations§
impl Freeze for ConstantValueNode
impl RefUnwindSafe for ConstantValueNode
impl Send for ConstantValueNode
impl Sync for ConstantValueNode
impl Unpin for ConstantValueNode
impl UnwindSafe for ConstantValueNode
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