pub struct VarDecl {
pub name: String,
pub ty: Ty,
pub kind: Kind,
pub init: Value,
pub read_only: bool,
pub doc: Option<String>,
}Expand description
A variable declared by the host.
Fields§
§name: StringThe name (package.variable).
ty: TyThe type (int, float, bool, str).
kind: KindKind.
init: ValueThe initial value.
read_only: boolWhether scripts cannot assign to it.
doc: Option<String>A description (used for completion in tools).
Trait Implementations§
impl StructuralPartialEq for VarDecl
Auto Trait Implementations§
impl Forget for VarDecl
impl Freeze for VarDecl
impl Move for VarDecl
impl RefUnwindSafe for VarDecl
impl Send for VarDecl
impl Sync for VarDecl
impl Unpin for VarDecl
impl UnsafeUnpin for VarDecl
impl UnwindSafe for VarDecl
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