pub struct MirEffectAnnotation {
pub name: String,
}Expand description
Declared effect on a MirFn. Carries the source name
("Console.print", "Disk.readText") for now; a later phase
may swap in EffectId for typed identity once the effect
registry grows ids.
Fields§
§name: StringTrait Implementations§
Source§impl Clone for MirEffectAnnotation
impl Clone for MirEffectAnnotation
Source§fn clone(&self) -> MirEffectAnnotation
fn clone(&self) -> MirEffectAnnotation
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for MirEffectAnnotation
impl RefUnwindSafe for MirEffectAnnotation
impl Send for MirEffectAnnotation
impl Sync for MirEffectAnnotation
impl Unpin for MirEffectAnnotation
impl UnsafeUnpin for MirEffectAnnotation
impl UnwindSafe for MirEffectAnnotation
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