Struct debris_hir::hir_nodes::HirModule
source · pub struct HirModule {
pub span: Span,
pub attributes: Vec<Attribute>,
pub ident: SpannedIdentifier,
pub block: HirBlock,
}
Expand description
A module with an associated name
Fields§
§span: Span
§attributes: Vec<Attribute>
§ident: SpannedIdentifier
§block: HirBlock
Trait Implementations§
source§impl PartialEq for HirModule
impl PartialEq for HirModule
impl Eq for HirModule
impl StructuralEq for HirModule
impl StructuralPartialEq for HirModule
Auto Trait Implementations§
impl RefUnwindSafe for HirModule
impl !Send for HirModule
impl !Sync for HirModule
impl Unpin for HirModule
impl UnwindSafe for HirModule
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.