pub struct PortBinding {
pub value: bool,
pub origin: String,
}Expand description
One external value bound to a port key, supplied from outside the program
(CLI / API / a data file). The origin is a short human tag used both in the
placeholders report and in a CompileError::PortConflict message.
Fields§
§value: boolThe boolean truth supplied for the port.
origin: StringWhere it came from: "CLI", "api", "data:<file>", or "PROVIDE <file>".
Trait Implementations§
Source§impl Clone for PortBinding
impl Clone for PortBinding
Source§fn clone(&self) -> PortBinding
fn clone(&self) -> PortBinding
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 moreSource§impl Debug for PortBinding
impl Debug for PortBinding
impl Eq for PortBinding
Source§impl PartialEq for PortBinding
impl PartialEq for PortBinding
Source§fn eq(&self, other: &PortBinding) -> bool
fn eq(&self, other: &PortBinding) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for PortBinding
Auto Trait Implementations§
impl Freeze for PortBinding
impl RefUnwindSafe for PortBinding
impl Send for PortBinding
impl Sync for PortBinding
impl Unpin for PortBinding
impl UnsafeUnpin for PortBinding
impl UnwindSafe for PortBinding
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