pub struct Summary {
pub effects: Vec<Located>,
pub opaque: Vec<String>,
pub panics: bool,
pub deferred: Vec<String>,
}Fields§
§effects: Vec<Located>§opaque: Vec<String>§panics: boolMay panic explicitly in the user’s code.
deferred: Vec<String>Trait methods reached through dyn or unresolved generics (keys), for the link step.
Implementations§
Source§impl Summary
impl Summary
Sourcefn size(&self) -> (usize, usize, bool, usize)
fn size(&self) -> (usize, usize, bool, usize)
Grows whenever an absorb adds anything (effects, opaque callees, panics, deferred calls).
Sourcefn absorb(
&mut self,
other: &Summary,
span: Span,
via: Option<&str>,
srcs: Option<&[Src]>,
)
fn absorb( &mut self, other: &Summary, span: Span, via: Option<&str>, srcs: Option<&[Src]>, )
Add a callee’s summary. srcs says what the call passes as each parameter; without it
(or for a parameter it cannot follow) an effect on a parameter is on anything.
fn add(&mut self, effect: Effect, span: Span)
Trait Implementations§
Auto Trait Implementations§
impl DynSend for Summary
impl DynSync for Summary
impl Forget for Summary
impl Freeze for Summary
impl Move for Summary
impl RefUnwindSafe for Summary
impl Send for Summary
impl Sync for Summary
impl Unpin for Summary
impl UnsafeUnpin for Summary
impl UnwindSafe for Summary
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