pub struct TestContext {
pub options: OutputOptions,
pub extensions: SimpleExtensions,
}
Fields§
§options: OutputOptions
§extensions: SimpleExtensions
Implementations§
Source§impl TestContext
impl TestContext
pub fn new() -> Self
pub fn with_options(self, options: OutputOptions) -> Self
pub fn with_uri(self, anchor: u32, uri: &str) -> Self
pub fn with_function( self, uri: u32, anchor: u32, name: impl Into<String>, ) -> Self
pub fn with_type(self, uri: u32, anchor: u32, name: impl Into<String>) -> Self
pub fn with_type_variation( self, uri: u32, anchor: u32, name: impl Into<String>, ) -> Self
pub fn scope<'e, E: ErrorAccumulator>( &'e self, errors: &'e E, ) -> impl Scope + 'e
pub fn textify<T: Textify>(&self, t: &T) -> (String, ErrorList)
pub fn textify_no_errors<T: Textify>(&self, t: &T) -> String
pub fn parse<T: ScopedParse>(&self, input: &str) -> Result<T, MessageParseError>
Trait Implementations§
Auto Trait Implementations§
impl Freeze for TestContext
impl RefUnwindSafe for TestContext
impl Send for TestContext
impl Sync for TestContext
impl Unpin for TestContext
impl UnwindSafe for TestContext
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