[][src]Struct meli::types::segment_tree::SegmentTree

pub struct SegmentTree {
    pub array: SmallVec<[u8; 1024]>,
    tree: SmallVec<[u8; 1024]>,
}

Fields

array: SmallVec<[u8; 1024]>tree: SmallVec<[u8; 1024]>

Implementations

impl SegmentTree[src]

pub fn new(val: SmallVec<[u8; 1024]>) -> SegmentTree[src]

pub fn get_max(&self, left: usize, right: usize) -> u8[src]

(left, right) is inclusive

pub fn update(&mut self, pos: usize, value: u8)[src]

Trait Implementations

impl Clone for SegmentTree[src]

impl Debug for SegmentTree[src]

impl Default for SegmentTree[src]

impl From<SmallVec<[u8; 1024]>> for SegmentTree[src]

Auto Trait Implementations

impl RefUnwindSafe for SegmentTree

impl Send for SegmentTree

impl Sync for SegmentTree

impl Unpin for SegmentTree

impl UnwindSafe for SegmentTree

Blanket Implementations

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

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

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

impl<T> From<T> for T[src]

impl<T> Instrument for T[src]

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

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

type Owned = T

The resulting type after obtaining ownership.

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

type Error = Infallible

The type returned in the event of a conversion error.

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

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>, 

impl<T> WithSubscriber for T[src]