pub struct CellSlot { /* private fields */ }Expand description
Retains a native local handle and its complete declared shape.
See the module example.
Implementations§
Source§impl CellSlot
impl CellSlot
Sourcepub fn native(&self) -> &CellSlot
pub fn native(&self) -> &CellSlot
Borrows the owner-checked native handle for occurrence inspection.
§Examples
let mut builder = adam_lang::CompositionBuilder::new(adam_lang::TypeRegistry::new());
let slot = builder.parameter("x", adam_lang::type_registry::TypeShape::Tuple(vec![]))?;
assert_eq!(slot.native(), slot.native());Trait Implementations§
impl Eq for CellSlot
impl StructuralPartialEq for CellSlot
Auto Trait Implementations§
impl !Send for CellSlot
impl !Sync for CellSlot
impl Freeze for CellSlot
impl RefUnwindSafe for CellSlot
impl Unpin for CellSlot
impl UnsafeUnpin for CellSlot
impl UnwindSafe for CellSlot
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.