pub struct List<'a>(_);
Implementations
sourceimpl<'a> List<'a>
impl<'a> List<'a>
pub fn term(&self) -> Term<'a>
pub fn env(&self) -> Env<'a>
pub fn new(
env: Env<'a>,
terms: impl IntoIterator<Item = impl Into<Term<'a>>>
) -> Result<List<'a>>
pub fn from_string(env: Env<'a>, string: &str) -> Result<List<'a>>
pub fn size(&self) -> Result<usize>
pub fn iter(&self) -> ListIterator<'a>ⓘNotable traits for ListIterator<'a>impl<'a> Iterator for ListIterator<'a> type Item = Term<'a>;
Trait Implementations
sourceimpl<'a> FromErlNif<'a> for List<'a>
impl<'a> FromErlNif<'a> for List<'a>
fn from_erl_nif(term: Term<'a>) -> Result<Self>
sourceimpl<'a> IntoErlNif<'a> for List<'a>
impl<'a> IntoErlNif<'a> for List<'a>
fn into_erl_nif(self, _env: Env<'a>) -> Result<Term<'a>>
impl<'a> Copy for List<'a>
Auto Trait Implementations
impl<'a> RefUnwindSafe for List<'a>
impl<'a> !Send for List<'a>
impl<'a> !Sync for List<'a>
impl<'a> Unpin for List<'a>
impl<'a> UnwindSafe for List<'a>
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcepub fn borrow_mut(&mut self) -> &mut T
pub 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.
sourcepub fn to_owned(&self) -> T
pub fn to_owned(&self) -> T
Creates owned data from borrowed data, usually by cloning. Read more
sourcepub fn clone_into(&self, target: &mut T)
pub 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