Skip to main content

VideoCodec

Struct VideoCodec 

Source
pub struct VideoCodec(/* private fields */);
Available on crate feature mediaframe only.
Expand description

What a video track’s bytes are encoded with — an FFmpeg video codec name in the lowercase canon, or the open escape for one this build’s roster does not carry.

The citizen wrapping mediaframe::codec::VideoCodec, which is where the roster, the escape and the ASCII fold all live. What this type adds is the right to give them a wire face, a filter and a storage shape — the rights the orphan rule reserves to the crate owning the type, which is why the newtype exists at all.

§Every string is a value, and that is the vocabulary rather than this type

new cannot fail. h264 names a codec, Some Codec 9000 names one this build has never heard of, and both are values — the second in the escape arm, losslessly. What separates them is is_registered, which is the question the absent refusal would have been asking.

Refusing the unknown one would be the worse bargain by some distance, and it is the same bargain Language states for an unregistered subtag: the FFmpeg table gains codecs, a generated roster is a snapshot, and a container in the wild carries whatever its muxer wrote. Refusing would make a file unindexable because of a table mediaframe last regenerated at n9.0.

§Equality is the CANONICAL slug, and the door is what makes that true

VideoCodec::new("H264") == VideoCodec::new("h264"), because the door folds and both hold the named h264. The fold happens ONCE, at construction, so a stored column is canonical and storage equality IS value equality: WHERE "codec" = 'h264' finds the row an H264 tag produced.

It holds against the upstream value too, which is the case that needs saying: From<mediaframe::codec::VideoCodec> re-runs the slug table, so a mediaframe::codec::VideoCodec::other("h264") — an escape arm holding a name the roster already spells, which upstream admits and compares unequal to the named variant — becomes the named variant on the way in. No second spelling of one codec exists inside this type.

§Ordering is ALPHABETICAL over that slug

av1 < h264 < prores. It orders the SPELLINGS and says nothing about the codecs — see the module note, where the bargain is argued and the agreement with the TEXT column’s own order is what earns it a cursor seat.

Implementations§

Source§

impl VideoCodec

Source

pub fn new(text: &str) -> Self

Read a video codec name, WIDE — any case, known or not.

The ONE door in. Every other route to a value of this type — FromStr, the GraphQL scalar, the column decode, the cursor read and the conversion from the upstream value — goes through here, so there is one fold and one table lookup in the house.

It is total: a name the roster does not carry lands in the escape arm, ASCII-folded to the lowercase canon.

Source

pub const fn get(&self) -> &Foreign

The wrapped upstream value, borrowed — the road to the roster’s own match, its IsVariant predicates and everything else mediaframe publishes on it.

Source

pub fn into_inner(self) -> Foreign

The wrapped upstream value, owned. Canonical, the door having made it so.

Source

pub fn as_str(&self) -> &str

The canonical slug — the text this value stores as, pages by, and crosses the wire as.

Source

pub fn is_registered(&self) -> bool

Whether this build’s roster CARRIES this codec, as against holding it in the open escape.

true for h264, false for a name FFmpeg n9.0 did not have. It is the one question that is actually about the table rather than about the value, and the honest form of the check a fallible door would have been pretending to make — see the module note.

The roster ITSELF is not restated here: it is mediaframe::codec::VideoCodec::ROSTER, and a citizen republishing its upstream’s list would be a second copy to keep in step.

Trait Implementations§

Source§

impl AsRef<str> for VideoCodec

Source§

fn as_ref(&self) -> &str

Converts this type into a shared reference of the (usually inferred) input type.
Source§

impl<'a, R: Row> Assemble<'a, R> for VideoCodec
where String: Assemble<'a, R>,

Available on crate feature sqlx only.

The decode — one TEXT column back through this type’s own door, and it CANNOT FAIL.

Generic over the ROW where the bind is generic over the DIALECT, which is the two traits’ parameters rather than a choice made here. The ? that remains is the column READ’s — a missing column or a non-text one is still sqlx’s error — and what has gone is the second one the subtag house has, its door having a refusal where this door has none.

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 VideoCodec
where Db: Database, String: Carrier<Db>,

Available on crate feature sqlx only.

The bind: the canonical slug as text.

An OWNED String rather than the borrowed &str the value already holds, and the reason is sqlx::QueryBuilder’s own lifetime rather than a preference: push_bind requires its value to outlive the builder’s 'args, which this trait’s signature leaves unrelated to &self.

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 VideoCodec

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 ColumnEq for VideoCodec

A codec is the same as a codec when its canonical slug is — one column, one comparison.

Source§

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

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

impl ColumnKind for VideoCodec

ONE column, which is the default — stated rather than inherited, because a reader auditing this house against a multi-column citizen should find the answer here rather than the absence of one.

Source§

const SEGMENTS: &'static [ColumnShape] = _

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

const ORDER: &'static [OrderLevel] = _

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

impl CompositeFilterMarker for VideoCodec

What guards a VideoCodec column, and it is the same predicate at both host kinds.

A codec stores every field it declares — there is only the one — so the two seats name one predicate: ScalarFilter under the reading this crate declares.

Source§

type Filter = ScalarFilter<VideoCodec, VideoCodecWire>

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

type ColumnFilter = ScalarFilter<VideoCodec, VideoCodecWire>

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

impl CursorValue for VideoCodec

THE KEYSET POSITION: the canonical slug’s UTF-8 bytes, which is what a TEXT column orders by and what the Ord above walks.

The read CANONICALISES rather than validating — a cursor is a string a CLIENT hands back, and this vocabulary has no spelling to refuse it for. What it can still refuse is bytes that are not UTF-8 at all, which is the one way a forged position fails here.

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 VideoCodec

The slug in quotes, which is what a Debug of a one-word vocabulary is FOR: the type name and the variant path around it say nothing a reader of a failing assertion wants.

Source§

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

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

impl DeclaredLeaves for VideoCodec

One leaf, and it is the value — ONE column, so there is no sequence to permute.

Source§

impl DefaultMarker for VideoCodec

The interpretation a VideoCodec field is read under: the framework’s COMPOSITE reading, which is the VALUE family’s member for one value occupying a column of its own.

Its Marker::UnderOption is NullableMarker and not the collection reading: a codec occupies a column OF ITS OWN, so it can be NULL and the null state is a real observable — a track whose codec the demuxer could not name is not a track encoded with a codec called nothing.

Source§

type Marker = CompositeMarker<VideoCodec>

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

impl Display for VideoCodec

The canonical slug, and nothing else — no quotes, no wrapper, no type name.

Source§

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

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

impl Eq for VideoCodec

Source§

impl From<VideoCodec> for String

Source§

fn from(codec: VideoCodec) -> Self

Converts to this type from the input type.
Source§

impl From<VideoCodec> for VideoCodec

The foreign value IN, and it RE-CANONICALISES rather than wrapping.

Upstream admits a value this house’s door would not mint — an Other holding text a named variant already spells — so the conversion runs the slug table rather than moving the bytes. Skipping it would put a second spelling of one codec inside the citizen, where it would compare unequal to the first under the derived equality while sorting equal to it under the Ord beside it. See the module note.

Source§

fn from(codec: VideoCodec) -> Self

Converts to this type from the input type.
Source§

impl From<VideoCodec> for VideoCodec

The foreign value OUT, which is a move: the wrapped value is already canonical.

Source§

fn from(codec: VideoCodec) -> Self

Converts to this type from the input type.
Source§

impl FromStr for VideoCodec

The parse, forwarded to this type’s own door — and INFALLIBLE, the open escape being what makes every string a codec.

Source§

type Err = !

The associated error which can be returned from parsing.
Source§

fn from_str(s: &str) -> Result<Self, Self::Err>

Parses a string s to return a value of this type. Read more
Source§

impl Hash for VideoCodec

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 InputType for VideoCodec

Available on crate feature async-graphql only.
Source§

type RawValueType = VideoCodec

The raw type used for validator. Read more
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§

fn parse(value: Option<Value>) -> InputValueResult<Self>

Parse from Value. None represents undefined.
Source§

fn to_value(&self) -> Value

Convert to a Value for introspection.
Source§

fn as_raw_value(&self) -> Option<&Self::RawValueType>

Returns a reference to the raw value.
Source§

fn qualified_type_name() -> String

Qualified typename.
Source§

impl MongoCarrier for VideoCodec

Available on crate feature mongo only.

THE DOCUMENT’S FORM: a BSON String holding the canonical slug — the same text the TEXT column above binds, at the one BSON type that holds it.

BSON’s String order is bytewise over UTF-8, so $gt and $lt over such a field walk the same alphabetical order this type’s Ord walks and the cursor above writes. That is read from MongoDB’s documented BSON order rather than measured against a live server here, which is the posture the register takes for its BinData rows.

This row is the FILTER OPERAND’s. The document’s WRITE is serde’s, and no storage type this crate ships carries a serde row — so a declaration naming a bare VideoCodec column under mongo(…) is E0277 at the declaration, and the escape is the one Timestamp’s row names: a type = "…" with its own conversions, which for a codec is the String it already converts to and from.

Source§

fn to_bson(&self) -> Bson

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

impl MongoExtract for VideoCodec

Available on crate feature mongo only.

THE READ: the same canonical slug, back through the door — MongoCarrier’s mirror.

It carries NO Range arm, and that absence is the whole difference from the subtag house’s row: that vocabulary can be handed a string naming no subtag, and this one cannot. What survives is the TYPE refusal — a document holding a number where a codec belongs is still wrong, and still says which BSON type arrived.

Source§

const BSON: &'static str = "string"

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 Ord for VideoCodec

ALPHABETICAL over the canonical slug — the order upstream does not publish, written here because the column has one and a cursor needs the two to agree. See the module note, where the bargain is argued and named as an order over SPELLINGS.

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 OutputType for VideoCodec

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, _: &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 VideoCodec

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 VideoCodec

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 ScalarType for VideoCodec

Available on crate feature async-graphql only.

An FFmpeg VIDEO codec name, read WIDE and written back canonical: "H264", "h264" and "H264" are one operand, and it is written back as h264.

A name this build’s roster does not carry is ACCEPTED and kept losslessly — the FFmpeg table gains codecs and a generated roster is a snapshot, so a stream tagged with something newer stays indexable and stays queryable under the name it was tagged with.

What is refused is a JSON value that is not a STRING. There is no spelling this door turns away.

Source§

fn is_valid(value: &Value) -> bool

The SOLE notion of validity, and it is the JSON KIND alone.

async-graphql’s default answers true for every value, so a scalar narrowing in parse alone ships a validator admitting what its own parser rejects. This one narrows to exactly what that parser takes — a string — which is the whole of what it refuses.

Source§

fn to_value(&self) -> Value

STRICT OUT: the canonical slug, whichever spelling came in.

Source§

fn parse(value: Value) -> InputValueResult<Self>

Parse a scalar value.
Source§

impl ScalarWire<VideoCodec> for VideoCodecWire

Source§

const NAME: &'static str = "VideoCodecFilter"

The GraphQL input object a scalar filter over T under this reading is published as.
Source§

type Carrier = VideoCodec

The wire type ONE operand crosses on. Read more
Source§

type Error = !

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

fn cross(carrier: Self::Carrier) -> Result<VideoCodec, Self::Error>

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

fn carry(operand: &VideoCodec) -> Self::Carrier

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

impl<Db> StoredAs<Db> for VideoCodec
where String: StoredAs<Db>,

The DECLARATION: whatever this dialect calls text, since the bind below is a String.

The word is delegated rather than named for the reason the bind is: a codec IS its canonical slug, so the column is a text column and the dialect’s own word for one is the only answer. The delegation carries the ADMISSION with it — a codec is declarable exactly where text is, which is everywhere.

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 VideoCodec

Source§

impl ToGraphqlInput for VideoCodec

The crossing is the IDENTITY: this type is its own GraphQL scalar, so an operand needs no second spelling. Every refusal happens at that scalar’s door, which is the one route a wire value takes in — and for this house that door refuses only a non-string.

Source§

type Input = VideoCodec

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 VideoCodec

The crossing OUT, and it is the identity the crossing IN is: what a wire face returns is a BORROW of the value the row already holds.

The pair is what makes a codec column a whole field type rather than half of one — a filter face with no return is what ToGraphqlOutput’s own note calls half a field type. The seat is BARE — no OutputType bound is written here — so the row stands in a build with no GraphQL binding at all.

Source§

type Output<'a> = &'a VideoCodec

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

fn to_graphql_output(marked: &Self) -> &Self

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> OrderLeaves for T

Source§

type Leaf = T

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

fn leaf(&self, _: usize) -> Option<T>

The at-th LEAF’s value, or None where this value has none there. 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> Same for T

Source§

type Output = T

Should always be Self
Source§

impl<T> SearchOptionsFace for T
where T: InputType,

Source§

impl<T> Searchable for T
where T: AsRef<str> + ?Sized,

Source§

fn write(&self, into: &mut BoxWriter)

Push this value into into as ONE segment.
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> ToSmolStr for T
where T: Display + ?Sized,

Source§

impl<T> ToString for T
where T: Display + ?Sized,

Source§

fn to_string(&self) -> String

Converts the given value to a String. 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