Struct rustler::types::binary::Binary [−][src]
pub struct Binary<'a> { /* fields omitted */ }
Expand description
An immutable smart-pointer to an Erlang binary.
See module-level doc for more information.
Implementations
Consumes owned
and returns an immutable Binary
.
Returns an Erlang term representation of self
.
Returns a new view into the same binary.
This method is analogous to subslicing (e.g. some_data[offset..length]
) in
that it does not copy nor allocate data.
Errors
If offset + length
is out of bounds, an error will be returned.
Trait Implementations
Auto Trait Implementations
impl<'a> RefUnwindSafe for Binary<'a>
impl<'a> UnwindSafe for Binary<'a>
Blanket Implementations
Mutably borrows from an owned value. Read more