pub struct LifetimeAnalyzer { /* private fields */ }Implementations§
Source§impl LifetimeAnalyzer
impl LifetimeAnalyzer
pub fn new() -> Self
pub fn add_lifetime( &mut self, name: String, scope_start: usize, scope_end: usize, )
pub fn add_constraint(&mut self, constraint: LifetimeConstraint)
pub fn check_constraints(&self) -> Result<(), Vec<String>>
pub fn infer_lifetimes(&mut self) -> HashMap<String, Lifetime>
Trait Implementations§
Auto Trait Implementations§
impl Freeze for LifetimeAnalyzer
impl RefUnwindSafe for LifetimeAnalyzer
impl Send for LifetimeAnalyzer
impl Sync for LifetimeAnalyzer
impl Unpin for LifetimeAnalyzer
impl UnwindSafe for LifetimeAnalyzer
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