pub struct DeclaredArity {
pub inputs: Option<usize>,
pub outputs: Option<usize>,
}Expand description
What a library says about its own input and output counts.
Returned by CScriptInstance::declared_arity. A side is None when the library wrote a
negative value for it, which means “I am not declaring this one” — a block genuinely
variadic on one side can still pin the other.
Fields§
§inputs: Option<usize>§outputs: Option<usize>Trait Implementations§
Source§impl Clone for DeclaredArity
impl Clone for DeclaredArity
impl Copy for DeclaredArity
Source§impl Debug for DeclaredArity
impl Debug for DeclaredArity
impl Eq for DeclaredArity
Source§impl PartialEq for DeclaredArity
impl PartialEq for DeclaredArity
impl StructuralPartialEq for DeclaredArity
Auto Trait Implementations§
impl Forget for DeclaredArity
impl Freeze for DeclaredArity
impl Move for DeclaredArity
impl RefUnwindSafe for DeclaredArity
impl Send for DeclaredArity
impl Sync for DeclaredArity
impl Unpin for DeclaredArity
impl UnsafeUnpin for DeclaredArity
impl UnwindSafe for DeclaredArity
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