pub type Var = SHVar;
Implementations
sourceimpl Var
impl Var
pub fn context_variable(name: &'static str) -> Var
pub fn new_object<T>(obj: &Rc<T>, info: &Type) -> Var
pub unsafe fn new_object_from_ptr<T>(obj: *const T, info: &Type) -> Var
pub unsafe fn new_object_from_raw_ptr(obj: SHPointer, info: &Type) -> Var
pub fn from_object_as_clone<T>(var: Var, info: &Type) -> Result<Rc<T>, &str>
pub fn get_mut_from_clone<'a, T>(
c: &Option<Rc<Option<T>>>
) -> Result<&'a mut T, &'a str>
pub fn from_object_mut_ref<T>(var: Var, info: &Type) -> Result<&mut T, &str>
pub fn from_object_ptr_mut_ref<T>(var: Var, info: &Type) -> Result<&mut T, &str>
pub fn from_object_ptr_ref<T>(var: Var, info: &Type) -> Result<&T, &str>
pub fn push<T: Into<Var>>(&mut self, _val: T)
pub fn try_push<T: TryInto<Var>>(&mut self, _val: T)
pub fn is_seq(&self) -> bool
pub fn is_none(&self) -> bool
pub fn is_string(&self) -> bool
pub fn is_path(&self) -> bool
pub fn as_ref(&self) -> &Self
pub fn is_context_var(&self) -> bool
pub fn enum_value(&self) -> Result<i32, &'static str>
Trait Implementations
sourceimpl Serialize for Var
impl Serialize for Var
sourcefn serialize<S>(
&self,
se: S
) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error> where
S: Serializer,
fn serialize<S>(
&self,
se: S
) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error> where
S: Serializer,
Serialize this value into the given Serde serializer. Read more