pub struct Context<'a, CT> {
pub r: CT,
pub zones: &'a Zones,
pub cache: &'a SharedCache,
question_stack: Vec<Question>,
metrics: Metrics,
}
Fields§
§r: CT
§zones: &'a Zones
§cache: &'a SharedCache
§question_stack: Vec<Question>
§metrics: Metrics
Implementations§
Source§impl<'a, CT> Context<'a, CT>
impl<'a, CT> Context<'a, CT>
pub fn new( r: CT, zones: &'a Zones, cache: &'a SharedCache, recursion_limit: usize, ) -> Self
pub fn metrics(&mut self) -> &mut Metrics
pub fn done(self) -> Metrics
pub fn at_recursion_limit(&self) -> bool
pub fn is_duplicate_question(&self, question: &Question) -> bool
pub fn push_question(&mut self, question: &Question)
pub fn pop_question(&mut self)
Auto Trait Implementations§
impl<'a, CT> Freeze for Context<'a, CT>where
CT: Freeze,
impl<'a, CT> RefUnwindSafe for Context<'a, CT>where
CT: RefUnwindSafe,
impl<'a, CT> Send for Context<'a, CT>where
CT: Send,
impl<'a, CT> Sync for Context<'a, CT>where
CT: Sync,
impl<'a, CT> Unpin for Context<'a, CT>where
CT: Unpin,
impl<'a, CT> UnwindSafe for Context<'a, CT>where
CT: UnwindSafe,
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