Struct debris_hir::hir_nodes::HirParameterDeclaration
source · pub struct HirParameterDeclaration {
pub span: Span,
pub ident: SpannedIdentifier,
pub typ: HirTypePattern,
}
Expand description
Holds a variable type declaration like foo: String
This is used in method signatures
Fields§
§span: Span
§ident: SpannedIdentifier
§typ: HirTypePattern
Trait Implementations§
source§impl Clone for HirParameterDeclaration
impl Clone for HirParameterDeclaration
source§fn clone(&self) -> HirParameterDeclaration
fn clone(&self) -> HirParameterDeclaration
Returns a copy 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 HirParameterDeclaration
impl Debug for HirParameterDeclaration
source§impl PartialEq for HirParameterDeclaration
impl PartialEq for HirParameterDeclaration
source§fn eq(&self, other: &HirParameterDeclaration) -> bool
fn eq(&self, other: &HirParameterDeclaration) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Eq for HirParameterDeclaration
impl StructuralEq for HirParameterDeclaration
impl StructuralPartialEq for HirParameterDeclaration
Auto Trait Implementations§
impl RefUnwindSafe for HirParameterDeclaration
impl Send for HirParameterDeclaration
impl Sync for HirParameterDeclaration
impl Unpin for HirParameterDeclaration
impl UnwindSafe for HirParameterDeclaration
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.