pub struct StructProjection { /* private fields */ }Expand description
One projected schema struct value type.
Implementations§
Source§impl StructProjection
impl StructProjection
Sourcepub fn new(
id: StructId,
target_name: TargetIdentifier,
fields: Vec<StructFieldProjection>,
) -> Result<Self, Diagnostic>
pub fn new( id: StructId, target_name: TargetIdentifier, fields: Vec<StructFieldProjection>, ) -> Result<Self, Diagnostic>
Construct one ordered struct projection.
Sourcepub const fn target_name(&self) -> &TargetIdentifier
pub const fn target_name(&self) -> &TargetIdentifier
Return the emitted value-type name.
Sourcepub fn fields(&self) -> &[StructFieldProjection]
pub fn fields(&self) -> &[StructFieldProjection]
Return fields in semantic declaration order.
Trait Implementations§
Source§impl Clone for StructProjection
impl Clone for StructProjection
Source§fn clone(&self) -> StructProjection
fn clone(&self) -> StructProjection
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 StructProjection
impl Debug for StructProjection
impl Eq for StructProjection
Source§impl PartialEq for StructProjection
impl PartialEq for StructProjection
Source§impl Serialize for StructProjection
impl Serialize for StructProjection
impl StructuralPartialEq for StructProjection
Auto Trait Implementations§
impl Freeze for StructProjection
impl RefUnwindSafe for StructProjection
impl Send for StructProjection
impl Sync for StructProjection
impl Unpin for StructProjection
impl UnsafeUnpin for StructProjection
impl UnwindSafe for StructProjection
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