praxis / algorithms / mocus
Module mocus
Quick Reference
| Item | Kind | Description |
|---|---|---|
CutSet | struct | |
Mocus | struct |
Structs
CutSet
struct CutSet {
pub events: std::collections::HashSet<String>,
}Implementations
<span id="cutset-new"></span>
fn new(events: Vec<String>) -> Self<span id="cutset-order"></span>
fn order(&self) -> usize<span id="cutset-is-minimal"></span>
fn is_minimal(&self, other_sets: &[CutSet]) -> bool—CutSet
Trait Implementations
impl<ST> CastableFrom for CutSet
impl Clone for CutSet
- <span id="cutset-clone"></span>
fn clone(&self) -> CutSet—CutSet
impl Debug for CutSet
- <span id="cutset-debug-fmt"></span>
fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result
impl Deserialize for CutSet
- <span id="cutset-deserialize"></span>
fn deserialize<__D>(__deserializer: __D) -> _serde::__private229::Result<Self, <__D as >::Error>
impl DeserializeOwned for CutSet
impl Eq for CutSet
impl Instrument for CutSet
impl IntoEither for CutSet
impl PartialEq for CutSet
- <span id="cutset-partialeq-eq"></span>
fn eq(&self, other: &CutSet) -> bool—CutSet
impl Pointable for CutSet
<span id="cutset-pointable-const-align"></span>
const ALIGN: usize<span id="cutset-pointable-type-init"></span>
type Init = T<span id="cutset-pointable-init"></span>
unsafe fn init(init: <T as Pointable>::Init) -> usize<span id="cutset-pointable-deref"></span>
unsafe fn deref<'a>(ptr: usize) -> &'a T<span id="cutset-pointable-deref-mut"></span>
unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T<span id="cutset-pointable-drop"></span>
unsafe fn drop(ptr: usize)
impl Read for CutSet
impl Same for CutSet
- <span id="cutset-same-type-output"></span>
type Output = T
impl Scalar for CutSet
impl Serialize for CutSet
- <span id="cutset-serialize"></span>
fn serialize<__S>(&self, __serializer: __S) -> _serde::__private229::Result<<__S as >::Ok, <__S as >::Error>
impl StructuralPartialEq for CutSet
impl<SS> SupersetOf for CutSet
<span id="cutset-supersetof-to-subset"></span>
fn to_subset(&self) -> Option<SS><span id="cutset-supersetof-is-in-subset"></span>
fn is_in_subset(&self) -> bool<span id="cutset-supersetof-to-subset-unchecked"></span>
fn to_subset_unchecked(&self) -> SS<span id="cutset-supersetof-from-subset"></span>
fn from_subset(element: &SS) -> SP
impl<V> VZip for CutSet
- <span id="cutset-vzip"></span>
fn vzip(self) -> V
impl WithSubscriber for CutSet
Mocus<'a>
struct Mocus<'a> {
// [REDACTED: Private Fields]
}Implementations
<span id="mocus-new"></span>
fn new(fault_tree: &'a FaultTree) -> Self—FaultTree<span id="mocus-with-max-order"></span>
fn with_max_order(self, max_order: usize) -> Self<span id="mocus-with-cut-off"></span>
fn with_cut_off(self, cut_off: f64) -> Self<span id="mocus-analyze"></span>
fn analyze(&mut self) -> Result<&[CutSet], PraxisError>—CutSet,PraxisError<span id="mocus-cut-sets"></span>
fn cut_sets(&self) -> &[CutSet]—CutSet
Trait Implementations
impl<ST> CastableFrom for Mocus<'a>
impl Instrument for Mocus<'a>
impl IntoEither for Mocus<'a>
impl Pointable for Mocus<'a>
<span id="mocus-pointable-const-align"></span>
const ALIGN: usize<span id="mocus-pointable-type-init"></span>
type Init = T<span id="mocus-pointable-init"></span>
unsafe fn init(init: <T as Pointable>::Init) -> usize<span id="mocus-pointable-deref"></span>
unsafe fn deref<'a>(ptr: usize) -> &'a T<span id="mocus-pointable-deref-mut"></span>
unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T<span id="mocus-pointable-drop"></span>
unsafe fn drop(ptr: usize)
impl Read for Mocus<'a>
impl Same for Mocus<'a>
- <span id="mocus-same-type-output"></span>
type Output = T
impl<SS> SupersetOf for Mocus<'a>
<span id="mocus-supersetof-to-subset"></span>
fn to_subset(&self) -> Option<SS><span id="mocus-supersetof-is-in-subset"></span>
fn is_in_subset(&self) -> bool<span id="mocus-supersetof-to-subset-unchecked"></span>
fn to_subset_unchecked(&self) -> SS<span id="mocus-supersetof-from-subset"></span>
fn from_subset(element: &SS) -> SP
impl<V> VZip for Mocus<'a>
- <span id="mocus-vzip"></span>
fn vzip(self) -> V
