#[non_exhaustive]pub struct PredicateFragment {
pub forms: Arc<PredicateForms>,
pub form: u32,
pub ordinal: u64,
}Expand description
One predicate for a cycle, as structure: a fragment value.
It names the predicate and does not hold its bytes, so making
one allocates nothing and reads no record. A host selects what
it prepared for form, reads the record
(forms.predicates.record_shared(ordinal) or record_bytes),
and binds it through that form’s binder.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.forms: Arc<PredicateForms>The forms this predicate is one of.
form: u32The index of this predicate’s form in forms.census.forms().
ordinal: u64The predicate’s ordinal in the facet: a query ordinal.
Trait Implementations§
Source§impl Clone for PredicateFragment
impl Clone for PredicateFragment
Source§impl Debug for PredicateFragment
impl Debug for PredicateFragment
Source§impl Wire for PredicateFragment
One predicate as structure: a fragment wire.
impl Wire for PredicateFragment
One predicate as structure: a fragment wire.
Source§const RESOLVER: Option<DefaultResolver> = None
const RESOLVER: Option<DefaultResolver> = None
Auto-resolver (library_catalog.md “Shapes”,
Resolved<R, T>)
for Str-typed upstream wires feeding this slot. None
(the default) disables auto-promotion; the workload must
supply the wire’s actual port type directly. Set via the
Resolved<R, T> marker wrapper.Source§const WIRE_COST: WireCost = crate::ast::WireCost::Data
const WIRE_COST: WireCost = crate::ast::WireCost::Data
Cost class for this wire (library_catalog.md “Wire cost classes”).
Defaults to
WireCost::Data (cheap per-cycle input).
Set to WireCost::Config via the Config<T> marker
wrapper to signal that the wire is rarely-changing and
the compiler should warn on cycle-time binding.Auto Trait Implementations§
impl !RefUnwindSafe for PredicateFragment
impl !UnwindSafe for PredicateFragment
impl Forget for PredicateFragment
impl Freeze for PredicateFragmentwhere
*const ArcInner<PredicateForms> is !null: Freeze,
PhantomData<ArcInner<PredicateForms>>: Freeze,
impl Move for PredicateFragment
impl Send for PredicateFragment
impl Sync for PredicateFragment
impl Unpin for PredicateFragment
impl UnsafeUnpin for PredicateFragmentwhere
*const ArcInner<PredicateForms> is !null: UnsafeUnpin,
PhantomData<ArcInner<PredicateForms>>: UnsafeUnpin,
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
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