#[non_exhaustive]pub struct RequireDecl {
pub target: Option<String>,
pub arg_count: usize,
}Expand description
Require 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.target: Option<String>Statically recognized require target when available.
arg_count: usizeNumber of parser arguments on the underlying function call.
Trait Implementations§
Source§impl Clone for RequireDecl
impl Clone for RequireDecl
Source§fn clone(&self) -> RequireDecl
fn clone(&self) -> RequireDecl
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 RequireDecl
impl Debug for RequireDecl
Source§impl PartialEq for RequireDecl
impl PartialEq for RequireDecl
Source§fn eq(&self, other: &RequireDecl) -> bool
fn eq(&self, other: &RequireDecl) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Eq for RequireDecl
impl StructuralPartialEq for RequireDecl
Auto Trait Implementations§
impl Freeze for RequireDecl
impl RefUnwindSafe for RequireDecl
impl Send for RequireDecl
impl Sync for RequireDecl
impl Unpin for RequireDecl
impl UnsafeUnpin for RequireDecl
impl UnwindSafe for RequireDecl
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