pub struct Records<T>(/* private fields */);Expand description
Records of T, by the name of what each is of.
Implementations§
Source§impl<T> Records<T>
impl<T> Records<T>
Sourcepub fn add(&mut self, name: impl Into<String>, record: T) -> GeopResult<()>
pub fn add(&mut self, name: impl Into<String>, record: T) -> GeopResult<()>
Records record under name. Fails, leaving the records as they
are, if there is one of that name already.
Sourcepub fn insert(&mut self, name: impl Into<String>, record: T)
pub fn insert(&mut self, name: impl Into<String>, record: T)
Records record under name, in place of what was.
Trait Implementations§
impl<T: PartialEq> StructuralPartialEq for Records<T>
Source§impl<T: PartialEq + 'static> Target for Records<T>
Every step that makes such an entity adds to them.
impl<T: PartialEq + 'static> Target for Records<T>
Every step that makes such an entity adds to them.
Source§const CHAIN: bool = true
const CHAIN: bool = true
Whether several steps may produce a target of this type, each from
what the steps before left (see
crate::reader::Reader::previous):
the model, the datums, the parameters’ values, the listings — what
a program accumulates. A target that is not a chain — a sketch, a
placed part — has one producer, and a second is an error naming
both.Auto Trait Implementations§
impl<T> Freeze for Records<T>
impl<T> RefUnwindSafe for Records<T>where
T: RefUnwindSafe,
impl<T> Send for Records<T>where
T: Send,
impl<T> Sync for Records<T>where
T: Sync,
impl<T> Unpin for Records<T>
impl<T> UnsafeUnpin for Records<T>
impl<T> UnwindSafe for Records<T>where
T: RefUnwindSafe,
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