pub struct DirectSpec {
pub spec_rel: String,
pub path: PathBuf,
pub cap_dir: String,
pub stem: String,
pub swift_target: String,
pub java_package: Option<String>,
}Expand description
One discovered src/spec.rs Direct-FFI spec and the module it belongs to.
Fields§
§spec_rel: StringRepository-relative spec path (packages/modules/<cap>/src/spec.rs).
path: PathBufThe spec file as found on disk (<repo root>/<spec_rel>).
cap_dir: StringModule directory name (secure-store).
stem: StringSpec namespace/stem (secure_store): the C/C++ include directory under cxx/include/nv/.
swift_target: String[package.metadata.nativeview] swift_target: the apple/Sources/<target> directory.
java_package: Option<String>Optional [package.metadata.nativeview] java_package (e.g. io.github.nativeview.modules.secure_store).
Implementations§
Source§impl DirectSpec
impl DirectSpec
Sourcepub fn leaf_dir(&self, leaf: ModuleLeaf) -> Result<String, CodegenError>
pub fn leaf_dir(&self, leaf: ModuleLeaf) -> Result<String, CodegenError>
packages/modules/<cap>/<leaf dir>, unified with ModuleLayout::leaf_dir.
Sourcepub fn layout(&self) -> ModuleLayout
pub fn layout(&self) -> ModuleLayout
Converts this Direct-FFI spec into a generic ModuleLayout.
Trait Implementations§
Source§impl Clone for DirectSpec
impl Clone for DirectSpec
Source§impl Debug for DirectSpec
impl Debug for DirectSpec
impl Eq for DirectSpec
Source§impl PartialEq for DirectSpec
impl PartialEq for DirectSpec
impl StructuralPartialEq for DirectSpec
Auto Trait Implementations§
impl Forget for DirectSpec
impl Freeze for DirectSpec
impl Move for DirectSpec
impl RefUnwindSafe for DirectSpec
impl Send for DirectSpecwhere
RawVecInner: Send,
impl Sync for DirectSpecwhere
RawVecInner: Sync,
impl Unpin for DirectSpec
impl UnsafeUnpin for DirectSpec
impl UnwindSafe for DirectSpecwhere
RawVecInner: UnwindSafe,
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