pub struct ReferableValue(/* private fields */);Implementations§
Source§impl ReferableValue
impl ReferableValue
pub fn new(v: Value) -> ReferableValue
pub fn ref_val(&self) -> Rc<RefCell<Value>>
pub fn clone_value(&self) -> Value
pub fn ref_clone(&self) -> ReferableValue
pub fn inner_ref(&self) -> Ref<'_, Value>
pub fn inner_ref_mut(&self) -> RefMut<'_, Value>
pub fn hard_clone(&self) -> ReferableValue
Trait Implementations§
Source§impl Debug for ReferableValue
impl Debug for ReferableValue
Source§impl FromIterator<ReferableValue> for Array
impl FromIterator<ReferableValue> for Array
Source§fn from_iter<I: IntoIterator<Item = ReferableValue>>(iter: I) -> Self
fn from_iter<I: IntoIterator<Item = ReferableValue>>(iter: I) -> Self
Creates a value from an iterator. Read more
Source§impl PartialEq for ReferableValue
impl PartialEq for ReferableValue
impl StructuralPartialEq for ReferableValue
Auto Trait Implementations§
impl Freeze for ReferableValue
impl !RefUnwindSafe for ReferableValue
impl !Send for ReferableValue
impl !Sync for ReferableValue
impl Unpin for ReferableValue
impl !UnwindSafe for ReferableValue
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
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