pub enum Carried {
Constant(Expr),
Opaque(String),
}Expand description
A unit global read back by the host.
Variants§
Constant(Expr)
The global’s value as the constant a DEFVAR of it would have bound.
Opaque(String)
A value of the named type that no constant can hold: a read of it in a later unit is an error naming the type.
Implementations§
Trait Implementations§
impl StructuralPartialEq for Carried
Auto Trait Implementations§
impl Freeze for Carried
impl RefUnwindSafe for Carried
impl Send for Carried
impl Sync for Carried
impl Unpin for Carried
impl UnsafeUnpin for Carried
impl UnwindSafe for Carried
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