pub struct DefinitionShape {
pub id: ShapeId,
pub type_name: TypeName,
pub kind: DefinitionKind,
}Expand description
A named type definition in a shape graph.
Fields§
§id: ShapeIdThe stable id of this definition inside its graph.
type_name: TypeNameThe Rust and Serde names for this definition.
kind: DefinitionKindThe definition body.
Trait Implementations§
Source§impl Clone for DefinitionShape
impl Clone for DefinitionShape
Source§fn clone(&self) -> DefinitionShape
fn clone(&self) -> DefinitionShape
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 DefinitionShape
impl Debug for DefinitionShape
impl Eq for DefinitionShape
Source§impl PartialEq for DefinitionShape
impl PartialEq for DefinitionShape
Source§fn eq(&self, other: &DefinitionShape) -> bool
fn eq(&self, other: &DefinitionShape) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for DefinitionShape
Auto Trait Implementations§
impl Freeze for DefinitionShape
impl RefUnwindSafe for DefinitionShape
impl Send for DefinitionShape
impl Sync for DefinitionShape
impl Unpin for DefinitionShape
impl UnsafeUnpin for DefinitionShape
impl UnwindSafe for DefinitionShape
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