pub struct KcodeRustLibs { /* private fields */ }Expand description
Entry point for creating and opening managed Rust libraries.
Implementations§
Source§impl KcodeRustLibs
impl KcodeRustLibs
Sourcepub fn new(
rust_libs_root: impl Into<PathBuf>,
crates_io_registry_token: impl Into<String>,
) -> Result<Self>
pub fn new( rust_libs_root: impl Into<PathBuf>, crates_io_registry_token: impl Into<String>, ) -> Result<Self>
Use rust_libs_root as the persistent library directory and retain the supplied crates.io
registry token in memory for publication.
Sourcepub fn create_rust_lib(&self, name: &str) -> Result<OpenedRustLib>
pub fn create_rust_lib(&self, name: &str) -> Result<OpenedRustLib>
Create a minimal managed Rust library and return it already loaded.
Sourcepub fn open_rust_lib(&self, name: &str) -> Result<OpenedRustLib>
pub fn open_rust_lib(&self, name: &str) -> Result<OpenedRustLib>
Open an existing managed Rust library and recursively load all of its current files.
Trait Implementations§
Source§impl Clone for KcodeRustLibs
impl Clone for KcodeRustLibs
Source§fn clone(&self) -> KcodeRustLibs
fn clone(&self) -> KcodeRustLibs
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for KcodeRustLibs
impl RefUnwindSafe for KcodeRustLibs
impl Send for KcodeRustLibs
impl Sync for KcodeRustLibs
impl Unpin for KcodeRustLibs
impl UnsafeUnpin for KcodeRustLibs
impl UnwindSafe for KcodeRustLibs
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