pub struct ZeroableOptionTypeNode {
pub item: Box<TypeNode>,
pub zero_value: Option<ConstantValueNode>,
}Fields§
§item: Box<TypeNode>§zero_value: Option<ConstantValueNode>Implementations§
Source§impl ZeroableOptionTypeNode
impl ZeroableOptionTypeNode
pub fn new<T>(item: T) -> ZeroableOptionTypeNode
pub fn custom<T>( item: T, zero_value: ConstantValueNode, ) -> ZeroableOptionTypeNode
Trait Implementations§
Source§impl Clone for ZeroableOptionTypeNode
impl Clone for ZeroableOptionTypeNode
Source§fn clone(&self) -> ZeroableOptionTypeNode
fn clone(&self) -> ZeroableOptionTypeNode
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 ZeroableOptionTypeNode
impl Debug for ZeroableOptionTypeNode
Source§impl<'de> Deserialize<'de> for ZeroableOptionTypeNode
impl<'de> Deserialize<'de> for ZeroableOptionTypeNode
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<ZeroableOptionTypeNode, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<ZeroableOptionTypeNode, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl From<ZeroableOptionTypeNode> for Node
impl From<ZeroableOptionTypeNode> for Node
Source§fn from(val: ZeroableOptionTypeNode) -> Node
fn from(val: ZeroableOptionTypeNode) -> Node
Converts to this type from the input type.
Source§impl From<ZeroableOptionTypeNode> for RegisteredTypeNode
impl From<ZeroableOptionTypeNode> for RegisteredTypeNode
Source§fn from(value: ZeroableOptionTypeNode) -> RegisteredTypeNode
fn from(value: ZeroableOptionTypeNode) -> RegisteredTypeNode
Converts to this type from the input type.
Source§impl From<ZeroableOptionTypeNode> for TypeNode
impl From<ZeroableOptionTypeNode> for TypeNode
Source§fn from(value: ZeroableOptionTypeNode) -> TypeNode
fn from(value: ZeroableOptionTypeNode) -> TypeNode
Converts to this type from the input type.
Source§impl NodeTrait for ZeroableOptionTypeNode
impl NodeTrait for ZeroableOptionTypeNode
Source§impl PartialEq for ZeroableOptionTypeNode
impl PartialEq for ZeroableOptionTypeNode
Source§impl Serialize for ZeroableOptionTypeNode
impl Serialize for ZeroableOptionTypeNode
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
Source§impl TypeNodeTrait for ZeroableOptionTypeNode
impl TypeNodeTrait for ZeroableOptionTypeNode
fn try_from_type_node( node: TypeNode, ) -> Result<ZeroableOptionTypeNode, CodamaError>
fn into_type_node(self) -> TypeNode
impl StructuralPartialEq for ZeroableOptionTypeNode
Auto Trait Implementations§
impl Freeze for ZeroableOptionTypeNode
impl RefUnwindSafe for ZeroableOptionTypeNode
impl Send for ZeroableOptionTypeNode
impl Sync for ZeroableOptionTypeNode
impl Unpin for ZeroableOptionTypeNode
impl UnwindSafe for ZeroableOptionTypeNode
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