pub struct ElementContract {
pub name: &'static str,
pub is_term: bool,
}Expand description
One (Element) marker of a structured message contract.
Fields§
§name: &'static strThe variable or term name (without the $ / - sigil).
is_term: booltrue for a term element (-name), false for a variable element.
Trait Implementations§
Source§impl Clone for ElementContract
impl Clone for ElementContract
Source§fn clone(&self) -> ElementContract
fn clone(&self) -> ElementContract
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 ElementContract
Source§impl Debug for ElementContract
impl Debug for ElementContract
impl Eq for ElementContract
Source§impl PartialEq for ElementContract
impl PartialEq for ElementContract
impl StructuralPartialEq for ElementContract
Auto Trait Implementations§
impl Freeze for ElementContract
impl RefUnwindSafe for ElementContract
impl Send for ElementContract
impl Sync for ElementContract
impl Unpin for ElementContract
impl UnsafeUnpin for ElementContract
impl UnwindSafe for ElementContract
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