TestContextExt

Trait TestContextExt 

Source
pub trait TestContextExt {
    // Required method
    fn test_fields(&self) -> Option<&Fields<'_>>;
}
Expand description

Extension trait for Context that provides access to the fields set on the context when using the TestEvaluator.

Required Methods§

Source

fn test_fields(&self) -> Option<&Fields<'_>>

Get the fields set on the context.

This method will only work with contexts that have been created when using TestEvaluator.

Implementations on Foreign Types§

Source§

impl TestContextExt for Context

Source§

fn test_fields(&self) -> Option<&Fields<'_>>

Implementors§