pub struct FieldBinding {
pub owner: NodeId,
pub name: String,
pub type_name: String,
}Expand description
A declared field and its written type. Resolution uses this fact for
receiver chains such as self.harness.check() without pretending that
the field access itself is a symbol definition.
Fields§
§owner: NodeIdType/class/struct that declares the field.
name: String§type_name: StringType exactly as written (Arc<dyn Harness>, &Dog, …).
Trait Implementations§
Source§impl Clone for FieldBinding
impl Clone for FieldBinding
Source§fn clone(&self) -> FieldBinding
fn clone(&self) -> FieldBinding
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 FieldBinding
impl Debug for FieldBinding
Source§impl<'de> Deserialize<'de> for FieldBinding
impl<'de> Deserialize<'de> for FieldBinding
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
impl Eq for FieldBinding
Source§impl Hash for FieldBinding
impl Hash for FieldBinding
Source§impl Ord for FieldBinding
impl Ord for FieldBinding
Source§fn cmp(&self, other: &FieldBinding) -> Ordering
fn cmp(&self, other: &FieldBinding) -> Ordering
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for FieldBinding
impl PartialEq for FieldBinding
Source§impl PartialOrd for FieldBinding
impl PartialOrd for FieldBinding
Source§impl Serialize for FieldBinding
impl Serialize for FieldBinding
impl StructuralPartialEq for FieldBinding
Auto Trait Implementations§
impl Freeze for FieldBinding
impl RefUnwindSafe for FieldBinding
impl Send for FieldBinding
impl Sync for FieldBinding
impl Unpin for FieldBinding
impl UnsafeUnpin for FieldBinding
impl UnwindSafe for FieldBinding
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