pub struct ContractId(pub &'static str);Expand description
A logical replacement slot. Concrete implementations keep their own node identity; the slot is the stable name that a graft targets. 逻辑替换插槽。具体实现保留各自 node identity;嫁接针对的是稳定插槽名。
Tuple Fields§
§0: &'static strImplementations§
Source§impl ContractId
impl ContractId
Sourcepub const NONE: ContractId
pub const NONE: ContractId
The undeclared slot id, spelled as the empty string. 未声明的插槽 id,即空字符串。
Sourcepub const fn new(value: &'static str) -> ContractId
pub const fn new(value: &'static str) -> ContractId
Wrap a slot name; an empty string means no slot was declared. 包装插槽名;空字符串表示没有声明插槽。
Trait Implementations§
Source§impl Clone for ContractId
impl Clone for ContractId
Source§fn clone(&self) -> ContractId
fn clone(&self) -> ContractId
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for ContractId
Source§impl Debug for ContractId
impl Debug for ContractId
Source§impl Display for ContractId
impl Display for ContractId
impl Eq for ContractId
Source§impl Hash for ContractId
impl Hash for ContractId
Source§impl PartialEq for ContractId
impl PartialEq for ContractId
impl StructuralPartialEq for ContractId
Auto Trait Implementations§
impl Freeze for ContractId
impl RefUnwindSafe for ContractId
impl Send for ContractId
impl Sync for ContractId
impl Unpin for ContractId
impl UnsafeUnpin for ContractId
impl UnwindSafe for ContractId
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