pub struct LoadContext { /* private fields */ }
Implementations§
Source§impl LoadContext
impl LoadContext
Sourcepub unsafe fn new() -> LoadContext
pub unsafe fn new() -> LoadContext
§Safety
LoadContext can only be used at specific times. Creating it could cause UB if done at the wrong time.
pub fn create_source_builder<D: Sourceable>(&self) -> SourceInfoBuilder<D>
pub fn create_output_builder<D: Outputable>(&self) -> OutputInfoBuilder<D>
pub fn register_source(&mut self, source: SourceInfo)
pub fn register_output(&mut self, output: OutputInfo)
Trait Implementations§
Auto Trait Implementations§
impl Freeze for LoadContext
impl RefUnwindSafe for LoadContext
impl !Send for LoadContext
impl !Sync for LoadContext
impl Unpin for LoadContext
impl UnwindSafe for LoadContext
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