pub struct LanguageBackend<'a> {
pub name: &'a str,
pub scythe_module: &'a str,
pub is_async: bool,
pub scythe_fn_for: &'a dyn Fn(&str) -> String,
pub lang_type_for: &'a dyn Fn(&str, bool) -> String,
}Expand description
Per-language inputs to build_handler_set. Each backend names itself
(used as the sidecar key) and supplies callbacks that translate scythe
metadata into language-native names and types.
Fields§
§name: &'a str§scythe_module: &'a str§is_async: bool§scythe_fn_for: &'a dyn Fn(&str) -> String§lang_type_for: &'a dyn Fn(&str, bool) -> StringAuto Trait Implementations§
impl<'a> Freeze for LanguageBackend<'a>
impl<'a> !RefUnwindSafe for LanguageBackend<'a>
impl<'a> !Send for LanguageBackend<'a>
impl<'a> !Sync for LanguageBackend<'a>
impl<'a> Unpin for LanguageBackend<'a>
impl<'a> UnsafeUnpin for LanguageBackend<'a>
impl<'a> !UnwindSafe for LanguageBackend<'a>
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