pub struct List<T: ToValue + FromValue>(/* private fields */);
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§
Source§impl<T: ToValue + FromValue> FromValue for List<T>
impl<T: ToValue + FromValue> FromValue for List<T>
Source§fn from_value(value: Value) -> Self
fn from_value(value: Value) -> Self
Convert from OCaml value
impl<T: Eq + ToValue + FromValue> Eq for List<T>
impl<T: ToValue + FromValue> StructuralPartialEq for List<T>
Auto Trait Implementations§
impl<T> Freeze for List<T>
impl<T> !RefUnwindSafe for List<T>
impl<T> !Send for List<T>
impl<T> !Sync for List<T>
impl<T> Unpin for List<T>where
T: Unpin,
impl<T> !UnwindSafe for List<T>
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