pub struct EnvironmentDef { /* private fields */ }
Implementations§
source§impl EnvironmentDef
impl EnvironmentDef
pub const fn new(name: Identifier, body: EnvironmentDefBody) -> Self
pub fn new_value<V>(name: Identifier, body: V) -> Selfwhere
V: Into<PredicateValue>,
pub fn new_function<V>(name: Identifier, body: V) -> Selfwhere
V: Into<FunctionDef>,
pub fn new_sentence<V>(name: Identifier, body: V) -> Selfwhere
V: Into<ConstraintSentence>,
Trait Implementations§
source§impl Clone for EnvironmentDef
impl Clone for EnvironmentDef
source§fn clone(&self) -> EnvironmentDef
fn clone(&self) -> EnvironmentDef
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for EnvironmentDef
impl Debug for EnvironmentDef
source§impl<'de> Deserialize<'de> for EnvironmentDef
impl<'de> Deserialize<'de> for EnvironmentDef
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl HasBody for EnvironmentDef
impl HasBody for EnvironmentDef
source§impl HasName for EnvironmentDef
impl HasName for EnvironmentDef
source§fn name(&self) -> &Identifier
fn name(&self) -> &Identifier
Get the name of the enclosing type.
source§fn set_name(&mut self, name: Identifier)
fn set_name(&mut self, name: Identifier)
Set the name of the enclosing type.
source§impl HasSourceSpan for EnvironmentDef
impl HasSourceSpan for EnvironmentDef
fn with_source_span(self, span: Span) -> Self
fn source_span(&self) -> Option<&Span>
fn set_source_span(&mut self, span: Span)
fn unset_source_span(&mut self)
fn has_source_span(&self) -> bool
Auto Trait Implementations§
impl Freeze for EnvironmentDef
impl RefUnwindSafe for EnvironmentDef
impl Send for EnvironmentDef
impl Sync for EnvironmentDef
impl Unpin for EnvironmentDef
impl UnwindSafe for EnvironmentDef
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,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)