Struct ocaml::List [−][src]
List<A>
wraps an OCaml 'a list
without converting it to Rust, this introduces no
additional overhead compared to a Value
type
Implementations
impl<'a, T: IntoValue + FromValue<'a>> List<'a, T>
[src]
impl<'a, T: IntoValue + FromValue<'a>> List<'a, T>
[src]#[must_use]pub unsafe fn add(self, rt: &Runtime, v: T) -> List<'a, T>
[src]
#[must_use]pub unsafe fn add(self, rt: &Runtime, v: T) -> List<'a, T>
[src]Add an element to the front of the list returning the new list
pub fn into_linked_list(self) -> LinkedList<T>
[src]
pub fn into_linked_list(self) -> LinkedList<T>
[src]List as LinkedList
Trait Implementations
impl<'a, T: IntoValue + FromValue<'a>> FromValue<'a> for List<'a, T>
[src]
impl<'a, T: IntoValue + FromValue<'a>> FromValue<'a> for List<'a, T>
[src]fn from_value(value: Value) -> Self
[src]
fn from_value(value: Value) -> Self
[src]Convert from OCaml value
impl<'a, T: IntoValue + FromValue<'a>> IntoIterator for List<'a, T>
[src]
impl<'a, T: IntoValue + FromValue<'a>> IntoIterator for List<'a, T>
[src]impl<'a, T: IntoValue + FromValue<'a>> IntoValue for List<'a, T>
[src]
impl<'a, T: IntoValue + FromValue<'a>> IntoValue for List<'a, T>
[src]fn into_value(self, _rt: &Runtime) -> Value
[src]
fn into_value(self, _rt: &Runtime) -> Value
[src]Convert to OCaml value
impl<'a, T: 'a + IntoValue + FromValue<'a>> StructuralPartialEq for List<'a, T>
[src]
Auto Trait Implementations
impl<'a, T> RefUnwindSafe for List<'a, T> where
T: RefUnwindSafe,
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,
T: RefUnwindSafe,
Blanket Implementations
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]pub fn borrow_mut(&mut self) -> &mut T
[src]
pub fn borrow_mut(&mut self) -> &mut T
[src]Mutably borrows from an owned value. Read more
impl<T> ToOwned for T where
T: Clone,
[src]
impl<T> ToOwned for T where
T: Clone,
[src]type Owned = T
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn to_owned(&self) -> T
[src]Creates owned data from borrowed data, usually by cloning. Read more
pub fn clone_into(&self, target: &mut T)
[src]
pub fn clone_into(&self, target: &mut T)
[src]🔬 This is a nightly-only experimental API. (toowned_clone_into
)
recently added
Uses borrowed data to replace owned data, usually by cloning. Read more