pub struct Declaration {
pub name: String,
pub tag: String,
pub arguments: Vec<Argument>,
pub variadic: bool,
pub implemented_by: Option<String>,
pub shape_known: bool,
}Expand description
A native declaration, from either side of the comparison.
Fields§
§name: String§tag: StringReturn tag, lowercased without the colon; empty when untagged.
arguments: Vec<Argument>§variadic: boolThe list ends in ..., so the argument count is open.
implemented_by: Option<String>The native this one is an alias of: native Email_Close(...) = email_close;
declares the name a script calls, implemented by the registered native
after the =. Comparison follows the =, so an include that renames the
whole surface is not reported as drift.
shape_known: boolWhether the argument list is known at all. A raw native registers its
name but parses its own arguments, so nothing but the name can be
compared; the include is the only place its shape is written down.
Trait Implementations§
Source§impl Clone for Declaration
impl Clone for Declaration
Source§impl Debug for Declaration
impl Debug for Declaration
impl Eq for Declaration
Source§impl PartialEq for Declaration
impl PartialEq for Declaration
impl StructuralPartialEq for Declaration
Auto Trait Implementations§
impl Freeze for Declaration
impl RefUnwindSafe for Declaration
impl Send for Declaration
impl Sync for Declaration
impl Unpin for Declaration
impl UnsafeUnpin for Declaration
impl UnwindSafe for Declaration
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