Skip to main content

Shared

Struct Shared 

Source
pub struct Shared<T>(pub Arc<T>);
Expand description

A shared dataset value as a node’s argument or result: the rows a predicate admits (Shared<OrdinalSet>, an admitted_rows wire) or the forms of a facet (Shared<PredicateForms>, Shared<RecordForms>, a forms wire). It derefs to the value. A node function names this rather than the Arc inside it, because a bare Arc<T> argument is an untyped handle wire to the node macro.

Tuple Fields§

§0: Arc<T>

Trait Implementations§

Source§

impl<T> Clone for Shared<T>

Source§

fn clone(&self) -> Self

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl<T: Debug> Debug for Shared<T>

Source§

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

Formats the value using the given formatter. Read more
Source§

impl<T> Deref for Shared<T>

Source§

type Target = T

The resulting type after dereferencing.
Source§

fn deref(&self) -> &T

Dereferences the value.
Source§

impl Wire for Shared<OrdinalSet>

The rows a predicate admits: an admitted_rows wire.

Source§

const PORT: PortType = PortType::AdmittedRows

Static port type for the DSL type-checker.
Source§

fn extract(v: &Value) -> Self

Pull a typed value out of a Value wire.
Source§

fn inject(self) -> Value

Push a typed value back into the Value outputs stream.
Source§

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

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.
Source§

impl Wire for Shared<PredicateForms>

The forms of a predicate facet: a forms wire.

Source§

const PORT: PortType = PortType::Forms

Static port type for the DSL type-checker.
Source§

fn extract(v: &Value) -> Self

Pull a typed value out of a Value wire.
Source§

fn inject(self) -> Value

Push a typed value back into the Value outputs stream.
Source§

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

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.
Source§

impl Wire for Shared<RecordForms>

The forms of a record facet: a forms wire.

Source§

const PORT: PortType = PortType::Forms

Static port type for the DSL type-checker.
Source§

fn extract(v: &Value) -> Self

Pull a typed value out of a Value wire.
Source§

fn inject(self) -> Value

Push a typed value back into the Value outputs stream.
Source§

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

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<T> Forget for Shared<T>

§

impl<T> Freeze for Shared<T>
where *const ArcInner<T> is !null: Freeze, PhantomData<ArcInner<T>>: Freeze,

§

impl<T> Move for Shared<T>

§

impl<T> RefUnwindSafe for Shared<T>

§

impl<T> Send for Shared<T>
where Arc<T>: Send,

§

impl<T> Sync for Shared<T>
where Arc<T>: Sync,

§

impl<T> Unpin for Shared<T>
where Arc<T>: Unpin,

§

impl<T> UnsafeUnpin for Shared<T>
where *const ArcInner<T> is !null: UnsafeUnpin, PhantomData<ArcInner<T>>: UnsafeUnpin,

§

impl<T> UnwindSafe for Shared<T>
where Arc<T>: UnwindSafe,

Blanket Implementations§

Source§

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

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

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

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

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

Source§

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

Mutably borrows from an owned value. Read more
Source§

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

Source§

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

Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T> Instrument for T

Source§

fn instrument(self, span: Span) -> Instrumented<Self> ⓘ

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
Source§

fn in_current_span(self) -> Instrumented<Self> ⓘ

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
Source§

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

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> IntoEither for T

Source§

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 more
Source§

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

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
Source§

impl<T> Pointable for T

Source§

const ALIGN: usize

The alignment of pointer.
Source§

type Init = T

The type for initializers.
Source§

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

Initializes a with the given initializer. Read more
Source§

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

Dereferences the given pointer. Read more
Source§

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

Mutably dereferences the given pointer. Read more
Source§

unsafe fn drop(ptr: usize)

Drops the object pointed to by the given pointer. Read more
Source§

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

Source§

fn and<P, B, E>(self, other: P) -> And<T, P>
where T: Sized + Policy<B, E>, P: Policy<B, E>,

Create a new Policy that returns Action::Follow only if self and other return Action::Follow. Read more
Source§

fn or<P, B, E>(self, other: P) -> Or<T, P>
where T: Sized + Policy<B, E>, P: Policy<B, E>,

Create a new Policy that returns Action::Follow if either self or other returns Action::Follow. Read more
Source§

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

Source§

impl<P, T> Receiver for P
where P: Deref<Target = T> + ?Sized, T: ?Sized,

Source§

type Target = T

🔬This is a nightly-only experimental API. (arbitrary_self_types)
The target type on which the method may be called.
Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
Source§

impl<T, S> SimdFrom<T, S> for T
where S: Simd,

Source§

fn simd_from(_simd: S, value: T) -> T

Source§

impl<F, T, S> SimdInto<T, S> for F
where T: SimdFrom<F, S>, S: Simd,

Source§

fn simd_into(self, simd: S) -> T

Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

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

Source§

type Error = !

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, !>

Performs the conversion.
Source§

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

Source§

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

The type returned in the event of a conversion error.
Source§

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

Performs the conversion.
Source§

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

Source§

fn vzip(self) -> V

Source§

impl<T> WithSubscriber for T

Source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> ⓘ
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
Source§

fn with_current_subscriber(self) -> WithDispatch<Self> ⓘ

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more