pub struct LispSourceLoader { /* private fields */ }Expand description
Loader that compiles .lisp source files into libs using a Lisp codec.
Implementations§
Source§impl LispSourceLoader
impl LispSourceLoader
Sourcepub fn new(codec: Symbol) -> LispSourceLoader
pub fn new(codec: Symbol) -> LispSourceLoader
Creates a loader that decodes source with the codec named codec.
Trait Implementations§
Source§impl Default for LispSourceLoader
impl Default for LispSourceLoader
Source§fn default() -> LispSourceLoader
fn default() -> LispSourceLoader
Returns the “default value” for a type. Read more
Source§impl LibLoader for LispSourceLoader
impl LibLoader for LispSourceLoader
Source§fn can_load(&self, source: &LibSource) -> bool
fn can_load(&self, source: &LibSource) -> bool
Reports whether this loader accepts the given source.
Source§fn load(&self, cx: &mut Cx, source: LibSource) -> Result<Box<dyn Lib>, Error>
fn load(&self, cx: &mut Cx, source: LibSource) -> Result<Box<dyn Lib>, Error>
Loads the source into a library object.
Source§fn inspect_manifest(
&self,
cx: &mut Cx,
source: &LibSource,
) -> Result<Option<LibManifest>, Error>
fn inspect_manifest( &self, cx: &mut Cx, source: &LibSource, ) -> Result<Option<LibManifest>, Error>
Inspects a source’s manifest without fully loading it; the default
returns
None (not supported).Auto Trait Implementations§
impl Freeze for LispSourceLoader
impl RefUnwindSafe for LispSourceLoader
impl Send for LispSourceLoader
impl Sync for LispSourceLoader
impl Unpin for LispSourceLoader
impl UnsafeUnpin for LispSourceLoader
impl UnwindSafe for LispSourceLoader
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more