bridge_adapters::lisp_adapters

Trait SlAsRef

Source
pub trait SlAsRef<'a, T: ?Sized>
where Self: BridgedType,
{ // Required method fn sl_as_ref(&self, vm: &'a SloshVm) -> VMResult<&'a T>; }
Expand description

Converts a BridgedType to some rust type

Required Methods§

Source

fn sl_as_ref(&self, vm: &'a SloshVm) -> VMResult<&'a T>

Converts this type into a shared reference of the (usually inferred) input type.

Implementations on Foreign Types§

Source§

impl<'a> SlAsRef<'a, str> for &Value

Source§

fn sl_as_ref(&self, vm: &'a SloshVm) -> VMResult<&'a str>

Source§

impl<'a, T, U: ?Sized> SlAsRef<'a, U> for &'a T
where T: SlAsRef<'a, U> + ?Sized, &'a T: BridgedType,

Source§

fn sl_as_ref(&self, vm: &'a SloshVm) -> VMResult<&'a U>

Source§

impl<'a, T, U: ?Sized> SlAsRef<'a, U> for &'a mut T

Source§

fn sl_as_ref(&self, vm: &'a SloshVm) -> VMResult<&'a U>

Implementors§