Skip to main content

LocalTimestamp

Struct LocalTimestamp 

Source
pub struct LocalTimestamp { /* private fields */ }
Available on crate features derive and time only.
Expand description

A wall clock and the zone it was on, where the zone may be absent — the EXIF capture-time shape, as one value.

Ord is the DECLARED one and it is the STORAGE order rather than the chronological one: a wall clock, then a displacement. It has to be, because the chronological order is PARTIAL — two values with no offset between them are not comparable as instants at all — and a PartialOrd that answered None for the commonest pair in a photo library would be a trap in every sort. The total order the database sorts by is ColumnKind::ORDER, which leads with the derived instant and falls back on exactly these fields; see the storage face, where the two are reconciled.

Implementations§

Source§

impl LocalTimestamp

This impl block contains no public items.

A wall clock and the zone it was on, where the zone may not have been written down.

Source§

impl LocalTimestamp

Source

pub const fn wall(local: DateTime) -> Self

A wall clock with NO zone — what a camera that never wrote OffsetTimeOriginal gives.

The commonest shape in a photograph library, and the one this type exists to keep honest: it names a moment on a clock face and no instant at all.

Source

pub const fn at(local: DateTime, offset: Offset) -> Self

A wall clock AND the zone it was on — the pair that composes into an instant.

Source

pub const fn new(local: DateTime, offset: Option<Offset>) -> Self

Either shape, from an Option a caller already holds.

The route a reader taking two independent EXIF tags goes through: the local clock is the one that must be there, and the offset is the one that usually is not.

Source

pub const fn local(&self) -> DateTime

The wall clock — always present.

Source

pub const fn offset(&self) -> Option<Offset>

The zone the wall clock was on, where the source said.

Source

pub const fn is_zoned(&self) -> bool

Whether the source named a zone — the bit the offset_stated leaf holds.

Named as a question rather than read off offset at every call site, because it is what the wire’s zoned slot and the storage’s third leaf both ask, and one answer keeps the three from drifting.

Source

pub fn to_utc(&self) -> Result<Timestamp, NoUtcPosition>

The UTC instant this value names, or why it names none.

§Errors

NoUtcPosition::Unzoned where the source stated no offset — REFUSED rather than assumed, which is the whole of this type’s posture. NoUtcPosition::OutOfRange where the wall clock and the offset compose into an instant jiff cannot represent, which is reachable only at the very edges of the ±9999-year civil span.

Source

pub fn to_utc_nanos(&self) -> Result<i64, NoUtcPosition>

The derived index leaf: the UTC instant in NANOSECONDS since the epoch.

The one quantity every stored value that HAS an instant shares, and therefore the one an ordering operator can mean what it says over — the position ORDER leads with and the value the write binds into utc_nanos.

§Errors

to_utc’s two, plus NoUtcPosition::NanosecondOverflow where the instant does not fit i64 nanoseconds — about ±292 years, so 1678 to 2262. A photograph outside that span keeps every value column exact and takes NULL in the index; nothing about it becomes unstorable, unreadable or unfindable, only unordered.

Trait Implementations§

Source§

impl<'a, R: Row> Assemble<'a, R> for LocalTimestamp
where bool: Assemble<'a, R>, i32: Assemble<'a, R>, PrimitiveDateTime: Assemble<'a, R>,

Available on crate feature sqlx only.

AND THE VALUE BACK IN — the wall clock and the offset pair, by name, and never the derived key.

Reading the key would give a row two ways to say what value it holds, and a derived column exists precisely so that there is one. It also means a row whose key is NULL decodes exactly like any other, which is what keeps the posture above a fact about ORDERING alone.

Two refusals, both of a STORED value rather than of a caller’s arithmetic: the wall clock’s components must be a datetime jiff admits, and the offset pair must be one this type writes.

Source§

fn assemble(row: &'a R, under: Option<&Path<'_>>) -> Result<Self>

Read this value out of row, under the segments under names. Read more
Source§

impl<Db> Carrier<Db> for LocalTimestamp

Available on crate feature sqlx only.

FOUR BINDS OUT — three that carry the value and one that carries its position.

The derived one is written as NULL rather than bound when the value has no instant, which is the shape ingraph’s own nullable carrier takes and for its reason: a None has no value to hand sqlx, and the column’s type is decided by the DDL rather than by a placeholder.

AND THREE FOR A STRUCTURAL JUDGMENT. The NULL above is exactly why the value-leaf bind exists: an equality that spent it would compare NULL = NULL, which is UNKNOWN, so an unzoned capture time could never be matched by the very tuple that wrote it — ingraph #455’s bug, one citizen over. The narrow bind is the WRITE’s own first three pushes, and its width is value_width(SEGMENTS).

Source§

fn push_bind(&self, qb: &mut QueryBuilder<Db>)

Push this value’s placeholder and bound argument onto qb. Read more
Source§

fn push_value_bind(&self, qb: &mut QueryBuilder<Db>)

Push this value’s placeholders and bound arguments for its VALUE columns alone — the DERIVED leaves left out. Read more
Source§

impl Clone for LocalTimestamp

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 CollectionElement for LocalTimestamp

THE ADMISSION. A capture time is a clock reading and the zone it was read on; it carries no collection, so it is one element of one.

Source§

impl ColumnEq for LocalTimestamp

Source§

fn column_eq(&self, other: &Self) -> bool

Whether self and other are the same stored value.
Source§

impl ColumnKind for LocalTimestamp

Source§

const SEGMENTS: &'static [ColumnShape] = SEGMENTS

What this type spans beneath the field that names it. Read more
Source§

const ORDER: &'static [OrderLevel] = ORDER

WHICH ORDER those columns mean — the leaves an order over this type sorts by, in sequence. Read more
Source§

impl CompositeFilterMarker for LocalTimestamp

What guards a LocalTimestamp column — one filter for both seats, a value storing every field it declares.

Source§

type Filter = LocalTimestampFilter

The filter a composite column of this type gets at a ROWLESS host — the full field set.
Source§

type ColumnFilter = LocalTimestampFilter

The filter a composite column of this type gets at a ROW-HOLDING host — the stored subset.
Source§

impl ContainerType for LocalTimestamp

Available on crate feature async-graphql only.
Source§

async fn resolve_field(&self, ctx: &Context<'_>) -> ServerResult<Option<Value>>

Available on non-crate feature boxed-trait only.
Resolves a field value and outputs it as a json value async_graphql::Value. Read more
Source§

async fn find_entity( &self, ctx: &Context<'_>, params: &Value, ) -> ServerResult<Option<Value>>

Available on non-crate feature boxed-trait only.
Find the GraphQL entity with the given name from the parameter. Read more
Source§

fn collect_all_fields<'a>( &'a self, ctx: &ContextBase<'a, &'a Positioned<SelectionSet>>, fields: &mut Fields<'a>, ) -> Result<(), ServerError>
where Self: Send + Sync,

Collect all the fields of the container that are queried in the selection set. Read more
Source§

impl Copy for LocalTimestamp

Source§

impl CursorValue for LocalTimestamp

The KEYSET position: the VALUE leaves, big-endian — the wall clock, then the offset pair.

The derived key is deliberately absent. A page resumes by comparing a boundary against what it was cut at, and a value with no stated zone would have no boundary to be cut at; the three value leaves always have one. It also keeps the cursor exactly as wide as the value it names.

Source§

fn write_cursor(&self, out: &mut Vec<u8>)

Append this value’s cursor bytes to out.
Source§

fn read_cursor(bytes: &[u8]) -> Option<Self>

The value bytes holds, or None where they are not this type’s encoding. Read more
Source§

impl Debug for LocalTimestamp

Source§

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

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

impl DefaultMarker for LocalTimestamp

The interpretation a LocalTimestamp field is read under: it occupies columns of its own and all of them can be absent together, which is exactly the VALUE family CompositeMarker names.

Source§

type Marker = CompositeMarker<LocalTimestamp>

The interpretation this type is read under by default.
Source§

impl DefaultVecMarker for LocalTimestamp

A COLLECTION of capture times is asked through the QUANTIFIERS, on the media instant’s own argument: a ListFilter’s operators hold a whole element as a single value, and this element’s identity question already has TWO answers — exact on the stored pair, eq on the derived instant — so a list operator would have to pick one silently.

Source§

type Marker = QuantifiedMarker<Vec<LocalTimestamp>>

The interpretation a Vec of this element type is read under by default. Read more
Source§

impl Eq for LocalTimestamp

Source§

impl From<LocalTimestamp> for LocalTimestampOperand

Source§

fn from(timestamp: LocalTimestamp) -> Self

Converts to this type from the input type.
Source§

impl From<LocalTimestampOperand> for LocalTimestamp

Source§

fn from(operand: LocalTimestampOperand) -> Self

Converts to this type from the input type.
Source§

impl Hash for LocalTimestamp

Source§

fn hash<__H: Hasher>(&self, state: &mut __H)

Feeds this value into the given Hasher. Read more
1.3.0 · Source§

fn hash_slice<H>(data: &[Self], state: &mut H)
where H: Hasher, Self: Sized,

Feeds a slice of this type into the given Hasher. Read more
Source§

impl MongoCarrier for LocalTimestamp

Available on crate feature mongo only.

THE BSON FORM: one sub-document, four keys, written in the ORDER the levels mean.

  { "utc_nanos": 1628926509000000000, "local": "2021-08-14T16:45:09",
    "offset_seconds": 32400, "offset_stated": true }

It NESTS where the table flattens, which is the asymmetry MongoCarrier’s own instant row already states: SQL’s namespace is flat and BSON’s is not. The SEGMENTS are the same segments — the four leaves a table joins with _ are the four a document reaches as at.local.

The derived key is written FIRST and null where there is none, so that BSON’s own field-by-field document comparison agrees with [ORDER]: the instant, then the wall clock, then the offset pair. The wall clock is its ISO 8601 text, which is the form BSON can both hold and compare — there is no BSON type for a datetime without a zone, and UtcDateTime would invent the one fact this value does not have.

Source§

fn to_bson(&self) -> Bson

This value as the BSON this crate stores it as.
Source§

impl MongoExtract for LocalTimestamp

Available on crate feature mongo only.

THE READ: three keys back into a capture time — MongoCarrier’s mirror, and the derived key is not among them for the reason the SQL decode leaves it out.

Both refusals are the SQL decode’s own, through [offset_of] and jiff’s parser, so one document and one row cannot disagree about which triples are capture times.

Source§

const BSON: &'static str = "object"

The BSON type ALIAS this row reads — $type’s own word, so a refusal and a query that would find the offending documents spell the type the same way.
Source§

fn extract(value: Option<&Bson>) -> Result<Self, MongoTypeError>

This value, out of the BSON a document held at some field, or None where the field is absent. Read more
Source§

impl ObjectType for LocalTimestamp

Available on crate feature async-graphql only.
Source§

impl Ord for LocalTimestamp

Source§

fn cmp(&self, other: &Self) -> Ordering

This method returns an Ordering between self and other. Read more
1.21.0 (const: unstable) · Source§

fn max(self, other: Self) -> Self
where Self: Sized,

Compares and returns the maximum of two values. Read more
1.21.0 (const: unstable) · Source§

fn min(self, other: Self) -> Self
where Self: Sized,

Compares and returns the minimum of two values. Read more
1.50.0 (const: unstable) · Source§

fn clamp(self, min: Self, max: Self) -> Self
where Self: Sized,

Restrict a value to a certain interval. Read more
Source§

fn clamp_to<R>(self, range: R) -> Self
where Self: Sized, R: ClampBounds<Self>,

🔬This is a nightly-only experimental API. (clamp_to)
Restrict a value to a certain range. Read more
Source§

impl OrderLeaves for LocalTimestamp

The four leaves, and the derived one RECOMPUTED at the call.

utc_nanos is a function of the value leaves and is stored by nobody — not by the decode, not by the whole value’s own CursorValue row. A level over it asks LocalTimestamp::to_utc_nanos, which is the same computation the write binds, so a boundary is the value the statement sorted by. Where that declines it answers None, which is the same NULL the write writes and becomes the cursor slot’s own absence — and the keyset’s NULL arms then place the row where the ORDER BY put it.

Source§

type Leaf = LocalTimestampLeaf

The value ONE of this type’s order levels compares. Read more
Source§

fn leaf(&self, at: usize) -> Option<LocalTimestampLeaf>

The at-th LEAF’s value, or None where this value has none there. Read more
Source§

impl OutputType for LocalTimestamp

Available on crate feature async-graphql only.
Source§

fn type_name() -> Cow<'static, str>

Type the name.
Source§

fn create_type_info(registry: &mut Registry) -> String

Create type information in the registry and return qualified typename.
Source§

async fn resolve( &self, ctx: &ContextSelectionSet<'_>, _field: &Positioned<Field>, ) -> ServerResult<Value>

Available on non-crate feature boxed-trait only.
Resolve an output value to async_graphql::Value.
Source§

fn qualified_type_name() -> String

Qualified typename.
Source§

fn introspection_type_name(&self) -> Cow<'static, str>

Introspection type name Read more
Source§

impl PartialEq for LocalTimestamp

Source§

fn eq(&self, other: &Self) -> bool

Equality operator ==. Read more
1.0.0 (const: unstable) · Source§

fn ne(&self, other: &Rhs) -> bool

Inequality operator !=. Read more
Source§

impl PartialOrd for LocalTimestamp

Source§

fn partial_cmp(&self, other: &Self) -> Option<Ordering>

This method returns an ordering between self and other values if one exists. Read more
1.0.0 (const: unstable) · Source§

fn lt(&self, other: &Rhs) -> bool

Tests less than (for self and other) and is used by the < operator. Read more
1.0.0 (const: unstable) · Source§

fn le(&self, other: &Rhs) -> bool

Tests less than or equal to (for self and other) and is used by the <= operator. Read more
1.0.0 (const: unstable) · Source§

fn gt(&self, other: &Rhs) -> bool

Tests greater than (for self and other) and is used by the > operator. Read more
1.0.0 (const: unstable) · Source§

fn ge(&self, other: &Rhs) -> bool

Tests greater than or equal to (for self and other) and is used by the >= operator. Read more
Source§

impl<Db> StoredAs<Db> for LocalTimestamp

The DECLARED half — FOUR words, each read off the leaf type’s own row so that a dialect changing its word for a wall clock, an integer or a boolean moves this declaration and there is no second list to drift from.

Source§

const WORDS: &'static [&'static str]

One word per column this type spans, in SEGMENTS order, written in this dialect catalogue’s own reported spelling.
Source§

impl StructuralPartialEq for LocalTimestamp

Source§

impl<Db> ToDatabaseComparison<LocalTimestamp, Db> for LocalTimestampFilter
where Db: Database + BindCeiling + for<'q> Backend<Builder<'q> = SqlConjunction<'q, Db>, Error = SqlLoweringError, Buffer: Display>, bool: Carrier<Db>, i32: Carrier<Db>, i64: Carrier<Db>, Temporal<PrimitiveDateTime>: Carrier<Db>, Temporal<i32>: Carrier<Db>, for<'a> &'a str: Encode<'a, Db> + Type<Db>,

Available on crate feature sqlx only.

The comparison, keyed by the CITIZEN — the row a field declared LocalTimestamp resolves through.

Source§

type Comparison = SqlLocalTimestampComparison<Db>

The comparison a filter of this kind crosses into, holding V and lowering for Db.
Source§

impl ToGraphqlInput for LocalTimestamp

The operand’s own crossing, so a [LocalTimestamp] column knows what one element looks like.

Source§

type Input = LocalTimestampOperand

The wire type one operand of this type crosses on. Read more
Source§

type Error = !

What a refused crossing says. Infallible where a crossing cannot refuse.
Source§

fn cross(input: Self::Input) -> Result<Self, Self::Error>

One operand, read off the wire. Read more
Source§

fn carry(operand: &Self) -> Self::Input

One operand, written back onto the wire. Read more
Source§

impl ToGraphqlOutput for LocalTimestamp

Available on crate feature async-graphql only.

The OUTPUT row: a capture time is returned as itself, by reference, through the object below.

Source§

type Output<'a> = &'a LocalTimestamp

The form a value of M crosses into an OUTPUT position as.
Source§

fn to_graphql_output(capture: &Self) -> Self::Output<'_>

That value, in that form. Read more

Auto Trait Implementations§

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<Q, K> Comparable<K> for Q
where Q: Ord + ?Sized, K: Borrow<Q> + ?Sized,

Source§

fn compare(&self, key: &K) -> Ordering

Compare self to key and return their ordering.
Source§

impl<T> Conv for T

Source§

fn conv<T>(self) -> T
where Self: Into<T>,

Converts self into T using Into<T>. Read more
Source§

impl<Db, T> DialectCursor<Db> for T
where T: CursorValue,

Source§

fn write_cursor_at(&self, out: &mut Vec<u8>)

Append this value’s cursor bytes for Db to out.
Source§

fn read_cursor_at(bytes: &[u8]) -> Option<T>

The value bytes holds at Db, or None where they are not this dialect’s encoding. Read more
Source§

impl<T> Downcast for T
where T: Any,

Source§

fn into_any(self: Box<T>) -> Box<dyn Any>

Converts Box<dyn Trait> (where Trait: Downcast) to Box<dyn Any>, which can then be downcast into Box<dyn ConcreteType> where ConcreteType implements Trait.
Source§

fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>

Converts Rc<Trait> (where Trait: Downcast) to Rc<Any>, which can then be further downcast into Rc<ConcreteType> where ConcreteType implements Trait.
Source§

fn as_any(&self) -> &(dyn Any + 'static)

Converts &Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot generate &Any’s vtable from &Trait’s.
Source§

fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)

Converts &mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot generate &mut Any’s vtable from &mut Trait’s.
Source§

impl<T> DowncastSend for T
where T: Any + Send,

Source§

fn into_any_send(self: Box<T>) -> Box<dyn Any + Send>

Converts Box<Trait> (where Trait: DowncastSend) to Box<dyn Any + Send>, which can then be downcast into Box<ConcreteType> where ConcreteType implements Trait.
Source§

impl<T> DowncastSync for T
where T: Any + Send + Sync,

Source§

fn into_any_sync(self: Box<T>) -> Box<dyn Any + Send + Sync>

Converts Box<Trait> (where Trait: DowncastSync) to Box<dyn Any + Send + Sync>, which can then be downcast into Box<ConcreteType> where ConcreteType implements Trait.
Source§

fn into_any_arc(self: Arc<T>) -> Arc<dyn Any + Send + Sync> ⓘ

Converts Arc<Trait> (where Trait: DowncastSync) to Arc<Any>, which can then be downcast into Arc<ConcreteType> where ConcreteType implements Trait.
Source§

impl<Q, K> Equivalent<K> for Q
where Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,

Source§

fn equivalent(&self, key: &K) -> bool

Compare self to key and return true if they are equal.
Source§

impl<Q, K> Equivalent<K> for Q
where Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,

Source§

fn equivalent(&self, key: &K) -> bool

Checks if this value is equivalent to the given key. Read more
Source§

impl<T> FmtForward for T

Source§

fn fmt_binary(self) -> FmtBinary<Self>
where Self: Binary,

Causes self to use its Binary implementation when Debug-formatted.
Source§

fn fmt_display(self) -> FmtDisplay<Self>
where Self: Display,

Causes self to use its Display implementation when Debug-formatted.
Source§

fn fmt_lower_exp(self) -> FmtLowerExp<Self>
where Self: LowerExp,

Causes self to use its LowerExp implementation when Debug-formatted.
Source§

fn fmt_lower_hex(self) -> FmtLowerHex<Self>
where Self: LowerHex,

Causes self to use its LowerHex implementation when Debug-formatted.
Source§

fn fmt_octal(self) -> FmtOctal<Self>
where Self: Octal,

Causes self to use its Octal implementation when Debug-formatted.
Source§

fn fmt_pointer(self) -> FmtPointer<Self>
where Self: Pointer,

Causes self to use its Pointer implementation when Debug-formatted.
Source§

fn fmt_upper_exp(self) -> FmtUpperExp<Self>
where Self: UpperExp,

Causes self to use its UpperExp implementation when Debug-formatted.
Source§

fn fmt_upper_hex(self) -> FmtUpperHex<Self>
where Self: UpperHex,

Causes self to use its UpperHex implementation when Debug-formatted.
Source§

fn fmt_list(self) -> FmtList<Self>
where &'a Self: for<'a> IntoIterator,

Formats each item in a sequence. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T> Fruit for T
where T: Send + Downcast,

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> Pipe for T
where T: ?Sized,

Source§

fn pipe<R>(self, func: impl FnOnce(Self) -> R) -> R
where Self: Sized,

Pipes by value. This is generally the method you want to use. Read more
Source§

fn pipe_ref<'a, R>(&'a self, func: impl FnOnce(&'a Self) -> R) -> R
where R: 'a,

Borrows self and passes that borrow into the pipe function. Read more
Source§

fn pipe_ref_mut<'a, R>(&'a mut self, func: impl FnOnce(&'a mut Self) -> R) -> R
where R: 'a,

Mutably borrows self and passes that borrow into the pipe function. Read more
Source§

fn pipe_borrow<'a, B, R>(&'a self, func: impl FnOnce(&'a B) -> R) -> R
where Self: Borrow<B>, B: 'a + ?Sized, R: 'a,

Borrows self, then passes self.borrow() into the pipe function. Read more
Source§

fn pipe_borrow_mut<'a, B, R>( &'a mut self, func: impl FnOnce(&'a mut B) -> R, ) -> R
where Self: BorrowMut<B>, B: 'a + ?Sized, R: 'a,

Mutably borrows self, then passes self.borrow_mut() into the pipe function. Read more
Source§

fn pipe_as_ref<'a, U, R>(&'a self, func: impl FnOnce(&'a U) -> R) -> R
where Self: AsRef<U>, U: 'a + ?Sized, R: 'a,

Borrows self, then passes self.as_ref() into the pipe function.
Source§

fn pipe_as_mut<'a, U, R>(&'a mut self, func: impl FnOnce(&'a mut U) -> R) -> R
where Self: AsMut<U>, U: 'a + ?Sized, R: 'a,

Mutably borrows self, then passes self.as_mut() into the pipe function.
Source§

fn pipe_deref<'a, T, R>(&'a self, func: impl FnOnce(&'a T) -> R) -> R
where Self: Deref<Target = T>, T: 'a + ?Sized, R: 'a,

Borrows self, then passes self.deref() into the pipe function.
Source§

fn pipe_deref_mut<'a, T, R>( &'a mut self, func: impl FnOnce(&'a mut T) -> R, ) -> R
where Self: DerefMut<Target = T> + Deref, T: 'a + ?Sized, R: 'a,

Mutably borrows self, then passes self.deref_mut() into the pipe function.
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<K> PositionKey for K
where K: Clone + Eq + Hash + Send + Sync,

Source§

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

Source§

impl<T> RootKey for T
where T: Clone + Eq + Hash + Send + Sync + 'static,

Source§

impl<T> RuleType for T
where T: Copy + Debug + Eq + Hash + Ord,

Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
Source§

impl<T> State<Identity> for T

Source§

type Output = T

The type Self projects to.
Source§

impl<T> Tap for T

Source§

fn tap(self, func: impl FnOnce(&Self)) -> Self

Immutable access to a value. Read more
Source§

fn tap_mut(self, func: impl FnOnce(&mut Self)) -> Self

Mutable access to a value. Read more
Source§

fn tap_borrow<B>(self, func: impl FnOnce(&B)) -> Self
where Self: Borrow<B>, B: ?Sized,

Immutable access to the Borrow<B> of a value. Read more
Source§

fn tap_borrow_mut<B>(self, func: impl FnOnce(&mut B)) -> Self
where Self: BorrowMut<B>, B: ?Sized,

Mutable access to the BorrowMut<B> of a value. Read more
Source§

fn tap_ref<R>(self, func: impl FnOnce(&R)) -> Self
where Self: AsRef<R>, R: ?Sized,

Immutable access to the AsRef<R> view of a value. Read more
Source§

fn tap_ref_mut<R>(self, func: impl FnOnce(&mut R)) -> Self
where Self: AsMut<R>, R: ?Sized,

Mutable access to the AsMut<R> view of a value. Read more
Source§

fn tap_deref<T>(self, func: impl FnOnce(&T)) -> Self
where Self: Deref<Target = T>, T: ?Sized,

Immutable access to the Deref::Target of a value. Read more
Source§

fn tap_deref_mut<T>(self, func: impl FnOnce(&mut T)) -> Self
where Self: DerefMut<Target = T> + Deref, T: ?Sized,

Mutable access to the Deref::Target of a value. Read more
Source§

fn tap_dbg(self, func: impl FnOnce(&Self)) -> Self

Calls .tap() only in debug builds, and is erased in release builds.
Source§

fn tap_mut_dbg(self, func: impl FnOnce(&mut Self)) -> Self

Calls .tap_mut() only in debug builds, and is erased in release builds.
Source§

fn tap_borrow_dbg<B>(self, func: impl FnOnce(&B)) -> Self
where Self: Borrow<B>, B: ?Sized,

Calls .tap_borrow() only in debug builds, and is erased in release builds.
Source§

fn tap_borrow_mut_dbg<B>(self, func: impl FnOnce(&mut B)) -> Self
where Self: BorrowMut<B>, B: ?Sized,

Calls .tap_borrow_mut() only in debug builds, and is erased in release builds.
Source§

fn tap_ref_dbg<R>(self, func: impl FnOnce(&R)) -> Self
where Self: AsRef<R>, R: ?Sized,

Calls .tap_ref() only in debug builds, and is erased in release builds.
Source§

fn tap_ref_mut_dbg<R>(self, func: impl FnOnce(&mut R)) -> Self
where Self: AsMut<R>, R: ?Sized,

Calls .tap_ref_mut() only in debug builds, and is erased in release builds.
Source§

fn tap_deref_dbg<T>(self, func: impl FnOnce(&T)) -> Self
where Self: Deref<Target = T>, T: ?Sized,

Calls .tap_deref() only in debug builds, and is erased in release builds.
Source§

fn tap_deref_mut_dbg<T>(self, func: impl FnOnce(&mut T)) -> Self
where Self: DerefMut<Target = T> + Deref, T: ?Sized,

Calls .tap_deref_mut() only in debug builds, and is erased in release builds.
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> TryConv for T

Source§

fn try_conv<T>(self) -> Result<T, Self::Error>
where Self: TryInto<T>,

Attempts to convert self into T using TryInto<T>. 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> WireScore for T
where T: ToGraphqlOutput + Send + Sync + 'static, <T as ToGraphqlOutput>::Output<'a>: for<'a> OutputType,

Source§

type Wire<'a> = <T as ToGraphqlOutput>::Output<'a> where T: 'a

Available on crate feature async-graphql only.
The form this score crosses into, and it is OutputType — the BACKEND’s demand, made where the backend spends the form.
Source§

fn wire_score(&self) -> <T as WireScore>::Wire<'_>

Available on crate feature async-graphql only.
This score, in that form.
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