pub enum CodebaseRelationSource {
StatePayload {
machine: usize,
state: usize,
field_name: Option<&'static str>,
},
MachineField {
machine: usize,
field_name: Option<&'static str>,
field_index: usize,
},
TransitionParam {
machine: usize,
transition: usize,
param_index: usize,
param_name: Option<&'static str>,
},
}Expand description
One exact relation source in the codebase export surface.
Variants§
Implementations§
Source§impl CodebaseRelationSource
impl CodebaseRelationSource
Sourcepub const fn machine(self) -> usize
pub const fn machine(self) -> usize
Stable source machine index for this exact relation source.
Sourcepub const fn state(self) -> Option<usize>
pub const fn state(self) -> Option<usize>
Stable source state index when the relation source is state-local.
Sourcepub const fn transition(self) -> Option<usize>
pub const fn transition(self) -> Option<usize>
Stable source transition index when the relation source is one transition parameter.
Trait Implementations§
Source§impl Clone for CodebaseRelationSource
impl Clone for CodebaseRelationSource
Source§fn clone(&self) -> CodebaseRelationSource
fn clone(&self) -> CodebaseRelationSource
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 Debug for CodebaseRelationSource
impl Debug for CodebaseRelationSource
Source§impl PartialEq for CodebaseRelationSource
impl PartialEq for CodebaseRelationSource
Source§impl Serialize for CodebaseRelationSource
impl Serialize for CodebaseRelationSource
impl Copy for CodebaseRelationSource
impl Eq for CodebaseRelationSource
impl StructuralPartialEq for CodebaseRelationSource
Auto Trait Implementations§
impl Freeze for CodebaseRelationSource
impl RefUnwindSafe for CodebaseRelationSource
impl Send for CodebaseRelationSource
impl Sync for CodebaseRelationSource
impl Unpin for CodebaseRelationSource
impl UnsafeUnpin for CodebaseRelationSource
impl UnwindSafe for CodebaseRelationSource
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