pub struct Multifield<'env> { /* private fields */ }Expand description
A retained CLIPS multifield: an ordered sequence of values.
Multifields do not nest. A field holding a multifield only arises from a slot; appending one to a builder splices its fields in.
Implementations§
Source§impl<'env> Multifield<'env>
impl<'env> Multifield<'env>
Sourcepub fn value(&self) -> &Value<'env>
pub fn value(&self) -> &Value<'env>
The multifield as a plain CLIPS value, for APIs that accept any value.
Sourcepub fn get(&self, index: usize) -> Option<Value<'env>>
pub fn get(&self, index: usize) -> Option<Value<'env>>
The field at a zero-based index, retained independently of this
multifield. None if the index is out of range.
Auto Trait Implementations§
impl<'env> !RefUnwindSafe for Multifield<'env>
impl<'env> !Send for Multifield<'env>
impl<'env> !Sync for Multifield<'env>
impl<'env> !UnwindSafe for Multifield<'env>
impl<'env> Freeze for Multifield<'env>
impl<'env> Unpin for Multifield<'env>
impl<'env> UnsafeUnpin for Multifield<'env>
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