[−][src]Struct runestick::Ref
A strong reference to the given type.
Implementations
impl<T: ?Sized> Ref<T>
[src]
pub fn into_raw(this: Self) -> (*const T, RawRef)
[src]
Convert into a raw pointer and associated raw access guard.
Safety
The returned pointer must not outlive the associated guard, since this prevents other uses of the underlying data which is incompatible with the current.
Trait Implementations
impl<T: ?Sized> Debug for Ref<T> where
T: Debug,
[src]
T: Debug,
impl<T: ?Sized> Deref for Ref<T>
[src]
impl<T> FromValue for Ref<T> where
T: Any,
[src]
T: Any,
fn from_value(value: Value) -> Result<Self, VmError>
[src]
impl FromValue for Ref<String>
[src]
fn from_value(value: Value) -> Result<Self, VmError>
[src]
impl FromValue for Ref<Function>
[src]
fn from_value(value: Value) -> Result<Self, VmError>
[src]
impl FromValue for Ref<Object>
[src]
fn from_value(value: Value) -> Result<Self, VmError>
[src]
impl FromValue for Ref<Tuple>
[src]
fn from_value(value: Value) -> Result<Self, VmError>
[src]
impl FromValue for Ref<Vec>
[src]
fn from_value(value: Value) -> Result<Self, VmError>
[src]
impl TypeOf for Ref<Function>
[src]
Auto Trait Implementations
impl<T> !RefUnwindSafe for Ref<T>
impl<T> !Send for Ref<T>
impl<T> !Sync for Ref<T>
impl<T: ?Sized> Unpin for Ref<T> where
T: Unpin,
T: Unpin,
impl<T> !UnwindSafe for Ref<T>
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,