#[repr(C)]pub struct ImporterFFI { /* private fields */ }Implementations§
Source§impl ImporterFFI
impl ImporterFFI
pub fn new<'a, I>(
importer: &'static I,
name: &str,
format: &str,
target: &str,
extensions: &[&'a str],
) -> Selfwhere
I: Importer,
pub fn name(&self) -> Result<&str, Utf8Error>
pub fn name_lossy(&self) -> Cow<'_, str>
pub fn format(&self) -> Result<&str, Utf8Error>
pub fn target(&self) -> Result<&str, Utf8Error>
pub fn extensions(&self) -> impl Iterator<Item = Result<&str, Utf8Error>>
pub fn import<'a, S, D>( &self, source: &Path, output: &Path, sources: &mut S, dependencies: &mut D, ) -> Result<(), ImportError>
Trait Implementations§
impl Send for ImporterFFI
Exporting non thread-safe importers breaks the contract of the FFI.
The potential unsoundness is covered by load_dylib_importers unsafety.
There is no way to guarantee that dynamic library will uphold the contract,
making load_dylib_importers inevitably unsound.
impl Sync for ImporterFFI
Auto Trait Implementations§
impl Freeze for ImporterFFI
impl RefUnwindSafe for ImporterFFI
impl Unpin for ImporterFFI
impl UnwindSafe for ImporterFFI
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