pub struct BOOL;Expand description
Boolean (0x00 = false, any non-zero = true).
Trait Implementations§
Source§impl ConstrainedTypeShape for BOOL
impl ConstrainedTypeShape for BOOL
Source§const IRI: &'static str = "https://uor.foundation/type/ConstrainedType"
const IRI: &'static str = "https://uor.foundation/type/ConstrainedType"
IRI of the ontology
type:ConstrainedType instance this shape represents.Source§const SITE_COUNT: usize = BOOL_BYTES
const SITE_COUNT: usize = BOOL_BYTES
Number of sites (fields) this constrained type carries.
Source§const CONSTRAINTS: &'static [ConstraintRef]
const CONSTRAINTS: &'static [ConstraintRef]
Per-site constraint list. Empty means unconstrained.
Source§const CYCLE_SIZE: u64
const CYCLE_SIZE: u64
ADR-032: cardinality of the shape’s value-set (the cycle
structure of the shape under the substrate’s discrete-clock
model). Used by the
prism_model! macro to lower first_admit
(closure-body grammar G16) to the correct descent measure.
Conventions: Read moreSource§const SITE_BUDGET: usize = Self::SITE_COUNT
const SITE_BUDGET: usize = Self::SITE_COUNT
Ontology-level
siteBudget: count of data sites only,
excluding bookkeeping introduced by composition (coproduct tag
sites, etc.). Equals SITE_COUNT for leaf shapes and for
shapes whose composition introduces no bookkeeping (products,
cartesian products). Strictly less than SITE_COUNT for coproduct
shapes and any shape whose SITE_COUNT includes inherited
bookkeeping. Introduced by the Product/Coproduct Completion
Amendment §4a; defaults to SITE_COUNT so pre-amendment
shape impls remain valid without edits.Source§impl Dtype for BOOL
impl Dtype for BOOL
Source§const NAME: &'static str = "BOOL"
const NAME: &'static str = "BOOL"
Per-dtype name string (uppercase, GGML-convention spelling).
Source§const BLOCK_BYTES: usize = BOOL_BYTES
const BLOCK_BYTES: usize = BOOL_BYTES
Bytes per block. For continuous element types this is the element
byte count; for quantized types this is the block-bytes count
(= the GGML
block_q*_* sizeof).Source§const BLOCK_ELEMS: usize = 1
const BLOCK_ELEMS: usize = 1
Elements per block.
1 for continuous types; 32 for legacy
quantization; 256 for K-series quantization.Source§impl IntoBindingValue for BOOL
impl IntoBindingValue for BOOL
Source§const MAX_BYTES: usize = BOOL_BYTES
const MAX_BYTES: usize = BOOL_BYTES
Maximum byte length any value of this shape can produce when
serialized via [
into_binding_bytes]. Used by run_route to
size the on-stack buffer and reject inputs that would overflow.Source§fn into_binding_bytes(&self, _out: &mut [u8]) -> Result<usize, ShapeViolation>
fn into_binding_bytes(&self, _out: &mut [u8]) -> Result<usize, ShapeViolation>
Serialize this input value into the binding-table form.
out is a
fixed-capacity buffer the call-site provides; the implementation
writes the canonical content-addressable byte sequence and returns
the written length. Read moreimpl Copy for BOOL
impl GroundedShape for BOOL
Auto Trait Implementations§
impl Freeze for BOOL
impl RefUnwindSafe for BOOL
impl Send for BOOL
impl Sync for BOOL
impl Unpin for BOOL
impl UnsafeUnpin for BOOL
impl UnwindSafe for BOOL
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