pub struct LibraryArtifact {
pub path: Expr,
pub namespace: Option<String>,
pub functions: Vec<FunctionEntry>,
}Expand description
One built library to include in a generated paclet loader: where to find the library at load time, plus the functions it exports.
Fields§
§path: ExprA Wolfram Language expression that evaluates to the library file’s path
when Functions.wl is loaded. The CLI passes something like
FileNameJoin[{DirectoryName[$InputFileName], "abc123.dylib"}]; the
runtime passes a plain absolute-path string.
namespace: Option<String>When Some(ns), every function key is namespaced as "ns::name" so
functions from different libraries cannot collide.
functions: Vec<FunctionEntry>The functions this library exports, as decoded from its embedded
manifest (see FunctionEntry).
Auto Trait Implementations§
impl Freeze for LibraryArtifact
impl RefUnwindSafe for LibraryArtifact
impl Send for LibraryArtifact
impl Sync for LibraryArtifact
impl Unpin for LibraryArtifact
impl UnsafeUnpin for LibraryArtifact
impl UnwindSafe for LibraryArtifact
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