pub struct KcodeRustLibs { /* private fields */ }Expand description
Manager for a persistent root of small agent-authored Rust libraries.
Implementations§
Source§impl KcodeRustLibs
impl KcodeRustLibs
Sourcepub fn new(
rust_libs_root: impl AsRef<Path>,
crates_io_registry_token: impl AsRef<str>,
) -> Result<Self>
pub fn new( rust_libs_root: impl AsRef<Path>, crates_io_registry_token: impl AsRef<str>, ) -> Result<Self>
Creates or opens the library root and retains the publication token privately.
Sourcepub fn create_rust_lib(&self, name: &str) -> Result<OpenedRustLib>
pub fn create_rust_lib(&self, name: &str) -> Result<OpenedRustLib>
Creates a new Rust 2024 library at version 0.1.0 and opens it.
Sourcepub fn open_rust_lib(&self, name: &str) -> Result<OpenedRustLib>
pub fn open_rust_lib(&self, name: &str) -> Result<OpenedRustLib>
Opens and completely loads an existing managed Rust library.
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