Struct preserves_schema::compiler::types::TDefinition
source · pub struct TDefinition {
pub purpose: Purpose,
pub self_ref: Ref,
pub body: TDefinitionBody,
}
Fields§
§purpose: Purpose
§self_ref: Ref
§body: TDefinitionBody
Implementations§
source§impl TDefinition
impl TDefinition
pub fn generic_decl(&self, ctxt: &ModuleContext<'_, '_>) -> Item
pub fn generic_decl_with_defaults(&self, ctxt: &ModuleContext<'_, '_>) -> Item
pub fn generic_arg(&self, ctxt: &ModuleContext<'_, '_>) -> Item
pub fn render(&self, ctxt: &ModuleContext<'_, '_>, n: &str) -> impl Emittable
pub fn language_types(&self, ctxt: &BundleContext<'_>) -> Set<String>
pub fn has_embedded(&self, ctxt: &BundleContext<'_>) -> bool
Trait Implementations§
source§impl Clone for TDefinition
impl Clone for TDefinition
source§fn clone(&self) -> TDefinition
fn clone(&self) -> TDefinition
Returns a copy 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 Debug for TDefinition
impl Debug for TDefinition
source§impl Ord for TDefinition
impl Ord for TDefinition
source§fn cmp(&self, other: &TDefinition) -> Ordering
fn cmp(&self, other: &TDefinition) -> Ordering
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
source§impl PartialEq for TDefinition
impl PartialEq for TDefinition
source§fn eq(&self, other: &TDefinition) -> bool
fn eq(&self, other: &TDefinition) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd for TDefinition
impl PartialOrd for TDefinition
source§fn partial_cmp(&self, other: &TDefinition) -> Option<Ordering>
fn partial_cmp(&self, other: &TDefinition) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moreimpl Eq for TDefinition
impl StructuralPartialEq for TDefinition
Auto Trait Implementations§
impl Freeze for TDefinition
impl RefUnwindSafe for TDefinition
impl Send for TDefinition
impl Sync for TDefinition
impl Unpin for TDefinition
impl UnwindSafe for TDefinition
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