pub struct Arity {
pub required: usize,
pub max: usize,
}Expand description
Built-in PHP function and class stubs.
Provides arities for core PHP functions and common extensions so the analyser does not flag standard-library calls as undefined.
Each entry is (name, required_args, max_args).
usize::MAX means variadic (no upper bound).
Arity bounds for a built-in callable.
Fields§
§required: usize§max: usizeTrait Implementations§
Auto Trait Implementations§
impl Freeze for Arity
impl RefUnwindSafe for Arity
impl Send for Arity
impl Sync for Arity
impl Unpin for Arity
impl UnsafeUnpin for Arity
impl UnwindSafe for Arity
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