pub struct RandomBranchNode<T> {
pub probability: f64,
pub jump_target: String,
pub _marker: PhantomData<T>,
}Fields§
§probability: f64§jump_target: String§_marker: PhantomData<T>Implementations§
Trait Implementations§
Source§impl<T: Clone> Clone for RandomBranchNode<T>
impl<T: Clone> Clone for RandomBranchNode<T>
Source§fn clone(&self) -> RandomBranchNode<T>
fn clone(&self) -> RandomBranchNode<T>
Returns a duplicate 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<T: Debug> Debug for RandomBranchNode<T>
impl<T: Debug> Debug for RandomBranchNode<T>
Source§impl<'de, T> Deserialize<'de> for RandomBranchNode<T>
impl<'de, T> Deserialize<'de> for RandomBranchNode<T>
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<T> JsonSchema for RandomBranchNode<T>
impl<T> JsonSchema for RandomBranchNode<T>
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Returns a string that uniquely identifies the schema produced by this type. Read more
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Generates a JSON Schema for this type. Read more
Source§fn inline_schema() -> bool
fn inline_schema() -> bool
Whether JSON Schemas generated for this type should be included directly in parent schemas,
rather than being re-used where possible using the
$ref keyword. Read moreSource§impl<T> Serialize for RandomBranchNode<T>
impl<T> Serialize for RandomBranchNode<T>
Source§impl<T> Transition<T, T> for RandomBranchNode<T>
impl<T> Transition<T, T> for RandomBranchNode<T>
Source§type Resources = ()
type Resources = ()
The type of resources required by this transition.
This follows the “Hard-Wired Types” principle from the Master Plan.
Source§fn run<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
input: T,
_resources: &'life1 Self::Resources,
_bus: &'life2 mut Bus,
) -> Pin<Box<dyn Future<Output = Outcome<T, Self::Error>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
fn run<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
input: T,
_resources: &'life1 Self::Resources,
_bus: &'life2 mut Bus,
) -> Pin<Box<dyn Future<Output = Outcome<T, Self::Error>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
Execute the transition. Read more
Source§fn description(&self) -> Option<String>
fn description(&self) -> Option<String>
Returns a detailed description of what this transition does.
Source§fn position(&self) -> Option<(f32, f32)>
fn position(&self) -> Option<(f32, f32)>
Returns the visual position of this transition in a schematic.
(x, y) coordinates.
Source§fn bus_access_policy(&self) -> Option<BusAccessPolicy>
fn bus_access_policy(&self) -> Option<BusAccessPolicy>
Optional transition-scoped Bus access policy (M143). Read more
Auto Trait Implementations§
impl<T> Freeze for RandomBranchNode<T>
impl<T> RefUnwindSafe for RandomBranchNode<T>where
T: RefUnwindSafe,
impl<T> Send for RandomBranchNode<T>where
T: Send,
impl<T> Sync for RandomBranchNode<T>where
T: Sync,
impl<T> Unpin for RandomBranchNode<T>where
T: Unpin,
impl<T> UnsafeUnpin for RandomBranchNode<T>
impl<T> UnwindSafe for RandomBranchNode<T>where
T: UnwindSafe,
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