pub struct PropertyDecisionNode {
pub property: i32,
pub splitval: i32,
pub predictor: Predictor,
pub predictor_offset: i32,
pub multiplier: i32,
pub lchild: usize,
pub rchild: usize,
pub context_id: u32,
}Expand description
A node in the property decision tree.
Fields§
§property: i32Property to split on (-1 = leaf node).
splitval: i32Split threshold value.
predictor: PredictorPredictor to use (for leaf nodes).
predictor_offset: i32Offset for predictor (for leaf nodes).
multiplier: i32Multiplier for residual (for leaf nodes).
lchild: usizeLeft child index (value <= splitval).
rchild: usizeRight child index (value > splitval).
context_id: u32Context ID for ANS coding.
Trait Implementations§
Source§impl Clone for PropertyDecisionNode
impl Clone for PropertyDecisionNode
Source§fn clone(&self) -> PropertyDecisionNode
fn clone(&self) -> PropertyDecisionNode
Returns a duplicate 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 Debug for PropertyDecisionNode
impl Debug for PropertyDecisionNode
Auto Trait Implementations§
impl Freeze for PropertyDecisionNode
impl RefUnwindSafe for PropertyDecisionNode
impl Send for PropertyDecisionNode
impl Sync for PropertyDecisionNode
impl Unpin for PropertyDecisionNode
impl UnsafeUnpin for PropertyDecisionNode
impl UnwindSafe for PropertyDecisionNode
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§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more