[][src]Struct parquet::memory::BufferPtr

pub struct BufferPtr<T> { /* fields omitted */ }

An representation of a slice on a reference-counting and read-only byte array. Sub-slices can be further created from this. The byte array will be released when all slices are dropped.

Methods

impl<T> BufferPtr<T>
[src]

Creates new buffer from a vector.

Returns slice of data in this buffer.

Updates this buffer with new start position and length len.

Range should be within current start position and length.

Adds memory tracker to this buffer.

Returns start position of this buffer.

Returns length of this buffer

Returns true if this buffer has memory tracker, false otherwise.

Returns a shallow copy of the buffer. Reference counted pointer to the data is copied.

Returns a shallow copy of the buffer that starts with start position.

Returns a shallow copy that is a range slice within this buffer.

Trait Implementations

impl From<BufferPtr<u8>> for ByteArray
[src]

impl AsRef<[u8]> for BufferPtr<u8>
[src]

impl<T: Clone> Clone for BufferPtr<T>
[src]

Performs copy-assignment from source. Read more

impl<T> Drop for BufferPtr<T>
[src]

impl<T: Debug> Display for BufferPtr<T>
[src]

impl<T: Debug> Debug for BufferPtr<T>
[src]

impl<T: Sized> Index<usize> for BufferPtr<T>
[src]

The returned type after indexing.

Auto Trait Implementations

impl<T> !Send for BufferPtr<T>

impl<T> !Sync for BufferPtr<T>

Blanket Implementations

impl<T, U> Into for T where
    U: From<T>, 
[src]

impl<T> ToString for T where
    T: Display + ?Sized
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

impl<T> From for T
[src]

impl<T, U> TryFrom for T where
    T: From<U>, 
[src]

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

impl<T> Borrow for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T, U> TryInto for T where
    U: TryFrom<T>, 
[src]

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

impl<T> BorrowMut for T where
    T: ?Sized
[src]

impl<E> SpecializationError for E
[src]

impl<T> Erased for T
[src]

impl<T> Send for T where
    T: ?Sized
[src]

impl<T> Sync for T where
    T: ?Sized
[src]

impl<T> Erased for T

impl<T, U> TryInto for T where
    U: TryFrom<T>,