Trait stepflow::prelude::Var [−][src]
Required methods
pub fn id(&self) -> &VarId
[src]
pub fn value_from_str(
&self,
s: &str
) -> Result<Box<dyn Value + 'static, Global>, InvalidValue>
[src]
&self,
s: &str
) -> Result<Box<dyn Value + 'static, Global>, InvalidValue>
pub fn validate_val_type(
&self,
val: &Box<dyn Value + 'static, Global>
) -> Result<(), InvalidValue>
[src]
&self,
val: &Box<dyn Value + 'static, Global>
) -> Result<(), InvalidValue>
Implementations
impl dyn Var + 'static + Sync + Send
[src]
pub fn downcast<T>(&self) -> Option<&T> where
T: Var + Any,
[src]
T: Var + Any,
pub fn is<T>(&self) -> bool where
T: Var + Any,
[src]
T: Var + Any,
Implementors
impl Var for BoolVar
[src]
pub fn id(&self) -> &VarId
[src]
Gets the ID
pub fn value_from_str(
&self,
s: &str
) -> Result<Box<dyn Value + 'static, Global>, InvalidValue>
[src]
&self,
s: &str
) -> Result<Box<dyn Value + 'static, Global>, InvalidValue>
Convert a &str to this Var’s corresponding value
pub fn validate_val_type(
&self,
val: &Box<dyn Value + 'static, Global>
) -> Result<(), InvalidValue>
[src]
&self,
val: &Box<dyn Value + 'static, Global>
) -> Result<(), InvalidValue>
Validate the value type corresponds to this Var
impl Var for EmailVar
[src]
pub fn id(&self) -> &VarId
[src]
Gets the ID
pub fn value_from_str(
&self,
s: &str
) -> Result<Box<dyn Value + 'static, Global>, InvalidValue>
[src]
&self,
s: &str
) -> Result<Box<dyn Value + 'static, Global>, InvalidValue>
Convert a &str to this Var’s corresponding value
pub fn validate_val_type(
&self,
val: &Box<dyn Value + 'static, Global>
) -> Result<(), InvalidValue>
[src]
&self,
val: &Box<dyn Value + 'static, Global>
) -> Result<(), InvalidValue>
Validate the value type corresponds to this Var
impl Var for StringVar
[src]
pub fn id(&self) -> &VarId
[src]
Gets the ID
pub fn value_from_str(
&self,
s: &str
) -> Result<Box<dyn Value + 'static, Global>, InvalidValue>
[src]
&self,
s: &str
) -> Result<Box<dyn Value + 'static, Global>, InvalidValue>
Convert a &str to this Var’s corresponding value
pub fn validate_val_type(
&self,
val: &Box<dyn Value + 'static, Global>
) -> Result<(), InvalidValue>
[src]
&self,
val: &Box<dyn Value + 'static, Global>
) -> Result<(), InvalidValue>
Validate the value type corresponds to this Var
impl Var for TrueVar
[src]
pub fn id(&self) -> &VarId
[src]
Gets the ID
pub fn value_from_str(
&self,
s: &str
) -> Result<Box<dyn Value + 'static, Global>, InvalidValue>
[src]
&self,
s: &str
) -> Result<Box<dyn Value + 'static, Global>, InvalidValue>
Convert a &str to this Var’s corresponding value
pub fn validate_val_type(
&self,
val: &Box<dyn Value + 'static, Global>
) -> Result<(), InvalidValue>
[src]
&self,
val: &Box<dyn Value + 'static, Global>
) -> Result<(), InvalidValue>
Validate the value type corresponds to this Var