#[non_exhaustive]pub struct SubDecl {
pub name: Option<String>,
pub name_range: Option<SourceLocation>,
pub has_prototype: bool,
pub has_signature: bool,
pub attribute_count: usize,
}Expand description
Subroutine declaration HIR payload.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.name: Option<String>Subroutine name, absent for anonymous subs.
name_range: Option<SourceLocation>Precise subroutine-name source range when available.
has_prototype: boolWhether the declaration has a prototype.
has_signature: boolWhether the declaration has a signature.
attribute_count: usizeNumber of parsed attributes.
Trait Implementations§
impl Eq for SubDecl
impl StructuralPartialEq for SubDecl
Auto Trait Implementations§
impl Freeze for SubDecl
impl RefUnwindSafe for SubDecl
impl Send for SubDecl
impl Sync for SubDecl
impl Unpin for SubDecl
impl UnsafeUnpin for SubDecl
impl UnwindSafe for SubDecl
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