pub struct CodegenTypeNameSortKey<'a>(/* private fields */);Expand description
A sort key for deterministic ordering of CodegenTypeNames.
Sorts schema types before inline types, then lexicographically by name. This ensures that code generation produces stable output regardless of declaration order.
Implementations§
Source§impl<'a> CodegenTypeNameSortKey<'a>
impl<'a> CodegenTypeNameSortKey<'a>
pub fn for_schema(view: &'a SchemaIrTypeView<'a>) -> Self
pub fn for_inline(view: &'a InlineIrTypeView<'a>) -> Self
pub fn into_name(self) -> CodegenTypeName<'a>
Trait Implementations§
Source§impl<'a> Clone for CodegenTypeNameSortKey<'a>
impl<'a> Clone for CodegenTypeNameSortKey<'a>
Source§fn clone(&self) -> CodegenTypeNameSortKey<'a>
fn clone(&self) -> CodegenTypeNameSortKey<'a>
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl<'a> Debug for CodegenTypeNameSortKey<'a>
impl<'a> Debug for CodegenTypeNameSortKey<'a>
Source§impl Ord for CodegenTypeNameSortKey<'_>
impl Ord for CodegenTypeNameSortKey<'_>
Source§impl PartialEq for CodegenTypeNameSortKey<'_>
impl PartialEq for CodegenTypeNameSortKey<'_>
Source§impl PartialOrd for CodegenTypeNameSortKey<'_>
impl PartialOrd for CodegenTypeNameSortKey<'_>
impl<'a> Copy for CodegenTypeNameSortKey<'a>
impl Eq for CodegenTypeNameSortKey<'_>
Auto Trait Implementations§
impl<'a> Freeze for CodegenTypeNameSortKey<'a>
impl<'a> !RefUnwindSafe for CodegenTypeNameSortKey<'a>
impl<'a> Send for CodegenTypeNameSortKey<'a>
impl<'a> Sync for CodegenTypeNameSortKey<'a>
impl<'a> Unpin for CodegenTypeNameSortKey<'a>
impl<'a> !UnwindSafe for CodegenTypeNameSortKey<'a>
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
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
impl<Q, K> Equivalent<K> for Q
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