pub struct BinaryTerm<'a> { /* private fields */ }
Implementations
sourceimpl<'a> BinaryTerm<'a>
impl<'a> BinaryTerm<'a>
pub fn term(&self) -> Term<'a>
pub fn env(&self) -> Env<'a>
pub fn new(env: Env<'a>, binary: Binary) -> Result<BinaryTerm<'a>>
pub fn from_bytes(env: Env<'a>, bytes: &[u8]) -> Result<BinaryTerm<'a>>
pub fn from_str(env: Env<'a>, string: &str) -> Result<BinaryTerm<'a>>
pub fn binary(&self) -> &Binary
pub fn get(&self) -> Result<&[u8]>
pub fn get_mut(&mut self) -> Result<&mut [u8]>
Trait Implementations
sourceimpl<'a> From<BinaryTerm<'a>> for Term<'a>
impl<'a> From<BinaryTerm<'a>> for Term<'a>
sourcefn from(value: BinaryTerm<'a>) -> Term<'a>
fn from(value: BinaryTerm<'a>) -> Term<'a>
Performs the conversion.
sourceimpl<'a> FromErlNif<'a> for BinaryTerm<'a>
impl<'a> FromErlNif<'a> for BinaryTerm<'a>
fn from_erl_nif(term: Term<'a>) -> Result<Self>
sourceimpl<'a> IntoErlNif<'a> for BinaryTerm<'a>
impl<'a> IntoErlNif<'a> for BinaryTerm<'a>
fn into_erl_nif(self, _env: Env<'a>) -> Result<Term<'a>>
Auto Trait Implementations
impl<'a> RefUnwindSafe for BinaryTerm<'a>
impl<'a> !Send for BinaryTerm<'a>
impl<'a> !Sync for BinaryTerm<'a>
impl<'a> Unpin for BinaryTerm<'a>
impl<'a> UnwindSafe for BinaryTerm<'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