pub struct Node2VecReader<'r>(/* private fields */);
Implementations§
Source§impl<'r> Node2VecReader<'r>
impl<'r> Node2VecReader<'r>
pub fn total_size(&self) -> usize
pub fn item_count(&self) -> usize
pub fn len(&self) -> usize
pub fn is_empty(&self) -> bool
pub fn get(&self, idx: usize) -> Option<Node2Reader<'r>>
pub fn get_unchecked(&self, idx: usize) -> Node2Reader<'r>
Source§impl<'r> Node2VecReader<'r>
impl<'r> Node2VecReader<'r>
pub fn iter<'t>(&'t self) -> Node2VecReaderIterator<'t, 'r> ⓘ
Trait Implementations§
Source§impl<'r> Clone for Node2VecReader<'r>
impl<'r> Clone for Node2VecReader<'r>
Source§fn clone(&self) -> Node2VecReader<'r>
fn clone(&self) -> Node2VecReader<'r>
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl<'r> Debug for Node2VecReader<'r>
impl<'r> Debug for Node2VecReader<'r>
Source§impl<'r> Display for Node2VecReader<'r>
impl<'r> Display for Node2VecReader<'r>
Source§impl<'r> LowerHex for Node2VecReader<'r>
impl<'r> LowerHex for Node2VecReader<'r>
Source§impl<'r> Reader<'r> for Node2VecReader<'r>
impl<'r> Reader<'r> for Node2VecReader<'r>
const NAME: &'static str = "Node2VecReader"
type Entity = Node2Vec
fn to_entity(&self) -> <Node2VecReader<'r> as Reader<'r>>::Entity
fn new_unchecked(slice: &'r [u8]) -> Node2VecReader<'r>
fn as_slice(&self) -> &'r [u8] ⓘ
fn verify(slice: &[u8], compatible: bool) -> Result<(), VerificationError>
fn from_slice(slice: &'r [u8]) -> Result<Self, VerificationError>
fn from_compatible_slice(slice: &'r [u8]) -> Result<Self, VerificationError>
impl<'r> Copy for Node2VecReader<'r>
Auto Trait Implementations§
impl<'r> Freeze for Node2VecReader<'r>
impl<'r> RefUnwindSafe for Node2VecReader<'r>
impl<'r> Send for Node2VecReader<'r>
impl<'r> Sync for Node2VecReader<'r>
impl<'r> Unpin for Node2VecReader<'r>
impl<'r> UnwindSafe for Node2VecReader<'r>
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)Source§impl<'r, R> FromSliceShouldBeOk<'r> for Rwhere
R: Reader<'r>,
impl<'r, R> FromSliceShouldBeOk<'r> for Rwhere
R: Reader<'r>,
Source§fn from_slice_should_be_ok(slice: &'r [u8]) -> R
fn from_slice_should_be_ok(slice: &'r [u8]) -> R
Unwraps the result of
from_slice(..)
with confidence and we assume that it’s impossible to fail.Source§fn from_compatible_slice_should_be_ok(slice: &'r [u8]) -> R
fn from_compatible_slice_should_be_ok(slice: &'r [u8]) -> R
Unwraps the result of
from_compatible_slice(..)
with confidence and we assume that it’s impossible to fail.