pub enum GenericLibraryFactory<'a, V> {
Native(LibraryName, Box<dyn Fn() -> Vec<(String, V)> + 'a>),
AST(Located<LibraryDefinition>),
}
Variants§
Native(LibraryName, Box<dyn Fn() -> Vec<(String, V)> + 'a>)
AST(Located<LibraryDefinition>)
Implementations§
Source§impl<'a, V> GenericLibraryFactory<'a, V>
impl<'a, V> GenericLibraryFactory<'a, V>
pub fn get_library_name(&self) -> &LibraryName
pub fn from_char_stream( expect_library_name: &LibraryName, char_stream: impl Iterator<Item = char>, ) -> Result<Self, SchemeError>
Auto Trait Implementations§
impl<'a, V> Freeze for GenericLibraryFactory<'a, V>
impl<'a, V> !RefUnwindSafe for GenericLibraryFactory<'a, V>
impl<'a, V> !Send for GenericLibraryFactory<'a, V>
impl<'a, V> !Sync for GenericLibraryFactory<'a, V>
impl<'a, V> Unpin for GenericLibraryFactory<'a, V>
impl<'a, V> !UnwindSafe for GenericLibraryFactory<'a, V>
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