Struct debris_hir::hir_nodes::HirPropertyDeclaration
source · pub struct HirPropertyDeclaration {
pub span: Span,
pub ident: SpannedIdentifier,
pub datatype: HirTypePattern,
}
Expand description
Declaration of a property in a struct definition
Fields§
§span: Span
The span of the declaration
ident: SpannedIdentifier
The identifier inside of the struct
datatype: HirTypePattern
The type of the property
Trait Implementations§
source§impl Debug for HirPropertyDeclaration
impl Debug for HirPropertyDeclaration
source§impl PartialEq for HirPropertyDeclaration
impl PartialEq for HirPropertyDeclaration
source§fn eq(&self, other: &HirPropertyDeclaration) -> bool
fn eq(&self, other: &HirPropertyDeclaration) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Eq for HirPropertyDeclaration
impl StructuralEq for HirPropertyDeclaration
impl StructuralPartialEq for HirPropertyDeclaration
Auto Trait Implementations§
impl RefUnwindSafe for HirPropertyDeclaration
impl Send for HirPropertyDeclaration
impl Sync for HirPropertyDeclaration
impl Unpin for HirPropertyDeclaration
impl UnwindSafe for HirPropertyDeclaration
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
§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.