Expand description
List<A>
wraps an OCaml 'a list
without converting it to Rust, this introduces no
additional overhead compared to a Value
type
Implementations
Trait Implementations
sourceimpl<'a, T: IntoValue + FromValue<'a>> FromValue<'a> for List<'a, T>
impl<'a, T: IntoValue + FromValue<'a>> FromValue<'a> for List<'a, T>
sourcefn from_value(value: Value) -> Self
fn from_value(value: Value) -> Self
Convert from OCaml value
sourceimpl<'a, T: IntoValue + FromValue<'a>> IntoIterator for List<'a, T>
impl<'a, T: IntoValue + FromValue<'a>> IntoIterator for List<'a, T>
sourceimpl<'a, T: IntoValue + FromValue<'a>> IntoValue for List<'a, T>
impl<'a, T: IntoValue + FromValue<'a>> IntoValue for List<'a, T>
sourcefn into_value(self, _rt: &Runtime) -> Value
fn into_value(self, _rt: &Runtime) -> Value
Convert to OCaml value
sourceimpl<'a, T: PartialEq + 'a + IntoValue + FromValue<'a>> PartialEq<List<'a, T>> for List<'a, T>
impl<'a, T: PartialEq + 'a + IntoValue + FromValue<'a>> PartialEq<List<'a, T>> for List<'a, T>
impl<'a, T: 'a + IntoValue + FromValue<'a>> StructuralPartialEq for List<'a, T>
Auto Trait Implementations
impl<'a, T> RefUnwindSafe for List<'a, T> where
T: RefUnwindSafe,
impl<'a, T> !Send for List<'a, T>
impl<'a, T> !Sync for List<'a, T>
impl<'a, T> Unpin for List<'a, T>
impl<'a, T> UnwindSafe for List<'a, T> where
T: RefUnwindSafe,
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
🔬 This is a nightly-only experimental API. (
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more