pub enum Descriptor {
IntSeq {
encoded: Vec<u8>,
},
BooleanFunction {
num_vars: usize,
tree: StructureTree,
},
}Expand description
The description language. Each variant is a program in a fixed language whose length is the description bound and whose execution (decode) reproduces the object.
Variants§
IntSeq
Layer 1: the closed-form generator menu of [logicaffeine_base::describe] applied to a raw
integer sequence. encoded is the shortest menu encoding; decoding it reproduces the sequence.
BooleanFunction
Layer 3: a Boolean function described by its recursive symmetry decomposition (structure_tree).
Decoding replays the tree to reproduce the 2ⁿ truth table.
Trait Implementations§
Source§impl Clone for Descriptor
impl Clone for Descriptor
Source§fn clone(&self) -> Descriptor
fn clone(&self) -> Descriptor
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 Descriptor
impl Debug for Descriptor
Source§impl PartialEq for Descriptor
impl PartialEq for Descriptor
Source§fn eq(&self, other: &Descriptor) -> bool
fn eq(&self, other: &Descriptor) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Eq for Descriptor
impl StructuralPartialEq for Descriptor
Auto Trait Implementations§
impl Freeze for Descriptor
impl RefUnwindSafe for Descriptor
impl Send for Descriptor
impl Sync for Descriptor
impl Unpin for Descriptor
impl UnsafeUnpin for Descriptor
impl UnwindSafe for Descriptor
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