pub struct ShapeInfo { /* private fields */ }Expand description
One declared struct shape: fields in declaration order, name -> declared
type (Ty::Unknown if the field’s own annotation doesn’t resolve —
e.g. an unrecognized type name, already flagged elsewhere by
annotations::check’s E061).
Originally pub(crate) (issue #831) so ref_projection’s strict-mode
path-segment check could reuse this exact shape table for ref lvalue-path field segments — “reuse existing machinery”
(docs/t1e-spec.md §6) rather than building a second one. Promoted to a
crate-public API (issue #858) so out-of-crate tooling (e.g. brink-ide
struct-field ref-path completion, T1e-3’s deferred “path continuations
after a ./[” item) can query declared shapes without duplicating this
table.
Implementations§
Auto Trait Implementations§
impl Freeze for ShapeInfo
impl RefUnwindSafe for ShapeInfo
impl Send for ShapeInfo
impl Sync for ShapeInfo
impl Unpin for ShapeInfo
impl UnsafeUnpin for ShapeInfo
impl UnwindSafe for ShapeInfo
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