pub struct RecordShape { /* private fields */ }Expand description
A record declaration: its name and its fields in declaration order.
Implementations§
Source§impl RecordShape
impl RecordShape
Sourcepub fn new<'a>(
name: &str,
fields: impl IntoIterator<Item = &'a str>,
) -> Arc<Self> ⓘ
pub fn new<'a>( name: &str, fields: impl IntoIterator<Item = &'a str>, ) -> Arc<Self> ⓘ
Returns the shape of the record name declaring fields, in order.
Sourcepub fn fields(&self) -> impl ExactSizeIterator<Item = &str>
pub fn fields(&self) -> impl ExactSizeIterator<Item = &str>
Returns the field names, in declaration order.
Trait Implementations§
Source§impl Debug for RecordShape
impl Debug for RecordShape
impl Eq for RecordShape
Source§impl PartialEq for RecordShape
impl PartialEq for RecordShape
impl StructuralPartialEq for RecordShape
Auto Trait Implementations§
impl Forget for RecordShape
impl Freeze for RecordShape
impl Move for RecordShape
impl RefUnwindSafe for RecordShape
impl Send for RecordShape
impl Sync for RecordShape
impl Unpin for RecordShape
impl UnsafeUnpin for RecordShapewhere
*const ArcInner<str> is !null: UnsafeUnpin,
PhantomData<ArcInner<str>>: UnsafeUnpin,
*const [Arc<str>] is !null: UnsafeUnpin,
PhantomData<[Arc<str>]>: UnsafeUnpin,
impl UnwindSafe for RecordShape
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