WPTResult

Struct WPTResult 

pub struct WPTResult {
    pub nodes: HashMap<NodeId, WPNode>,
    pub max_level: usize,
    pub original_length: usize,
    pub boundary_mode: BoundaryMode,
    pub wavelet_name: String,
    pub wavelet_fingerprint: u64,
    pub full_decomposition: bool,
}

Fields§

§nodes: HashMap<NodeId, WPNode>§max_level: usize§original_length: usize§boundary_mode: BoundaryMode§wavelet_name: String§wavelet_fingerprint: u64§full_decomposition: bool

Implementations§

§

impl WPTResult

pub fn get_level(&self, level: usize) -> Vec<&WPNode>

pub fn get_node(&self, id: &NodeId) -> Option<&WPNode>

pub fn get_node_mut(&mut self, id: &NodeId) -> Option<&mut WPNode>

pub fn get_leaves(&self) -> Vec<&WPNode>

pub fn level_energy(&self, level: usize) -> f64

Trait Implementations§

§

impl Debug for WPTResult

§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Auto Trait Implementations§

Blanket Implementations§

§

impl<T> Any for T
where T: 'static + ?Sized,

§

fn type_id(&self) -> TypeId

§

impl<T> Borrow<T> for T
where T: ?Sized,

§

fn borrow(&self) -> &T

§

impl<T> BorrowMut<T> for T
where T: ?Sized,

§

fn borrow_mut(&mut self) -> &mut T

§

impl<T> From<T> for T

§

fn from(t: T) -> T

§

impl<T, U> Into<U> for T
where U: From<T>,

§

fn into(self) -> U

§

impl<T> IntoEither for T

§

fn into_either(self, into_left: bool) -> Either<Self, Self>

§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where F: FnOnce(&Self) -> bool,

§

impl<T> Pointable for T

§

const ALIGN: usize

§

type Init = T

§

unsafe fn init(init: <T as Pointable>::Init) -> usize

§

unsafe fn deref<'a>(ptr: usize) -> &'a T

§

unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

§

unsafe fn drop(ptr: usize)

§

impl<T> Same for T

§

type Output = T

§

impl<SS, SP> SupersetOf<SS> for SP
where SS: SubsetOf<SP>,

§

fn to_subset(&self) -> Option<SS>

§

fn is_in_subset(&self) -> bool

§

fn to_subset_unchecked(&self) -> SS

§

fn from_subset(element: &SS) -> SP

§

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

§

type Error = Infallible

§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

§

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

§

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

§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

§

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

§

fn vzip(self) -> V

§

impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
where ST: ?Sized, DT: ?Sized,

§

impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
where ST: ?Sized, DT: ?Sized,

§

impl<T> Read<Exclusive, BecauseExclusive> for T
where T: ?Sized,