pub struct DecompositionBinding {
pub name: String,
pub type_annotation: TypeAnnotation,
pub span: Span,
}Expand description
A single binding in a decomposition pattern
Fields§
§name: StringThe variable name to bind
type_annotation: TypeAnnotationThe type annotation (component type to extract)
span: SpanSource span for error reporting
Trait Implementations§
Source§impl Clone for DecompositionBinding
impl Clone for DecompositionBinding
Source§fn clone(&self) -> DecompositionBinding
fn clone(&self) -> DecompositionBinding
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 DecompositionBinding
impl Debug for DecompositionBinding
Source§impl<'de> Deserialize<'de> for DecompositionBinding
impl<'de> Deserialize<'de> for DecompositionBinding
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for DecompositionBinding
impl PartialEq for DecompositionBinding
Source§impl Serialize for DecompositionBinding
impl Serialize for DecompositionBinding
impl StructuralPartialEq for DecompositionBinding
Auto Trait Implementations§
impl Freeze for DecompositionBinding
impl RefUnwindSafe for DecompositionBinding
impl Send for DecompositionBinding
impl Sync for DecompositionBinding
impl Unpin for DecompositionBinding
impl UnsafeUnpin for DecompositionBinding
impl UnwindSafe for DecompositionBinding
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