pub struct TestGlobal<T: TestLayerTag = Tag<0>> { /* private fields */ }Available on crate feature
_test only.Expand description
The container of the static resources related to TestLayer<T>.
Use the TestGlobal::builder to construct one.
Implementations§
Source§impl<T: TestLayerTag> TestGlobal<T>
impl<T: TestLayerTag> TestGlobal<T>
Sourcepub const fn builder() -> TestGlobalBuilder<T>
pub const fn builder() -> TestGlobalBuilder<T>
Create the builder for initialization.
Sourcepub fn create_context(&'static self) -> Box<dyn Any>
pub fn create_context(&'static self) -> Box<dyn Any>
Create a context for expectations for the static object.
Auto Trait Implementations§
impl<T = Tag<0>> !Freeze for TestGlobal<T>
impl<T> RefUnwindSafe for TestGlobal<T>where
T: RefUnwindSafe + UnwindSafe,
impl<T> Send for TestGlobal<T>
impl<T> Sync for TestGlobal<T>
impl<T> Unpin for TestGlobal<T>where
T: Unpin,
impl<T> UnwindSafe for TestGlobal<T>where
T: UnwindSafe,
Blanket Implementations§
§impl<T> AnySync for T
impl<T> AnySync for T
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