Struct debris_mir::mir_context::ReturnValuesData
source · pub struct ReturnValuesData {
pub default_return: MirObjectId,
pub explicit_return: Option<(MirObjectId, Span)>,
pub unconditionally_returned: bool,
}
Expand description
Stores returns values a given context can return Multiple contexts can share the same return values data
Fields§
§default_return: MirObjectId
§explicit_return: Option<(MirObjectId, Span)>
The id of the explicitly returned value and the span where it was declared
unconditionally_returned: bool
Implementations§
source§impl ReturnValuesData
impl ReturnValuesData
pub fn new(default_return: MirObjectId) -> Self
sourcepub fn return_value(&self) -> MirObjectId
pub fn return_value(&self) -> MirObjectId
Returns the id of the return value This should be the first return value in a function
pub fn return_span(&self) -> Option<Span>
Trait Implementations§
Auto Trait Implementations§
impl RefUnwindSafe for ReturnValuesData
impl Send for ReturnValuesData
impl Sync for ReturnValuesData
impl Unpin for ReturnValuesData
impl UnwindSafe for ReturnValuesData
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