pub struct GraphSpy<G: SwhGraph, MAPS: MaybeMaps = NoMaps, TIMESTAMPS: MaybeTimestamps = NoTimestamps, PERSONS: MaybePersons = NoPersons, CONTENTS: MaybeContents = NoContents, STRINGS: MaybeStrings = NoStrings, LABELNAMES: MaybeLabelNames = NoLabelNames> {
pub history: Arc<Mutex<Vec<GraphAccessRecord>>>,
/* private fields */
}Expand description
Wraps a graph, and records calls to its methods, useful for tests
Fields§
§history: Arc<Mutex<Vec<GraphAccessRecord>>>History of graph accesses
Implementations§
Source§impl<G: SwhGraphWithProperties<Contents: OptContents>, MAPS: MaybeMaps, TIMESTAMPS: MaybeTimestamps, PERSONS: MaybePersons, STRINGS: MaybeStrings, LABELNAMES: MaybeLabelNames> GraphSpy<G, MAPS, TIMESTAMPS, PERSONS, NoContents, STRINGS, LABELNAMES>
impl<G: SwhGraphWithProperties<Contents: OptContents>, MAPS: MaybeMaps, TIMESTAMPS: MaybeTimestamps, PERSONS: MaybePersons, STRINGS: MaybeStrings, LABELNAMES: MaybeLabelNames> GraphSpy<G, MAPS, TIMESTAMPS, PERSONS, NoContents, STRINGS, LABELNAMES>
pub fn with_contents( self, ) -> GraphSpy<G, MAPS, TIMESTAMPS, PERSONS, ContentsSpy<G>, STRINGS, LABELNAMES>
Source§impl<G: SwhGraphWithProperties<LabelNames: LabelNames>, MAPS: MaybeMaps, TIMESTAMPS: MaybeTimestamps, PERSONS: MaybePersons, CONTENTS: MaybeContents, STRINGS: MaybeStrings> GraphSpy<G, MAPS, TIMESTAMPS, PERSONS, CONTENTS, STRINGS, NoLabelNames>
impl<G: SwhGraphWithProperties<LabelNames: LabelNames>, MAPS: MaybeMaps, TIMESTAMPS: MaybeTimestamps, PERSONS: MaybePersons, CONTENTS: MaybeContents, STRINGS: MaybeStrings> GraphSpy<G, MAPS, TIMESTAMPS, PERSONS, CONTENTS, STRINGS, NoLabelNames>
pub fn with_label_names( self, ) -> GraphSpy<G, MAPS, TIMESTAMPS, PERSONS, CONTENTS, STRINGS, LabelNamesSpy<G>>
Source§impl<G: SwhGraphWithProperties<Maps: Maps>, TIMESTAMPS: MaybeTimestamps, PERSONS: MaybePersons, CONTENTS: MaybeContents, STRINGS: MaybeStrings, LABELNAMES: MaybeLabelNames> GraphSpy<G, NoMaps, TIMESTAMPS, PERSONS, CONTENTS, STRINGS, LABELNAMES>
impl<G: SwhGraphWithProperties<Maps: Maps>, TIMESTAMPS: MaybeTimestamps, PERSONS: MaybePersons, CONTENTS: MaybeContents, STRINGS: MaybeStrings, LABELNAMES: MaybeLabelNames> GraphSpy<G, NoMaps, TIMESTAMPS, PERSONS, CONTENTS, STRINGS, LABELNAMES>
Source§impl<G: SwhGraphWithProperties<Persons: OptPersons>, MAPS: MaybeMaps, TIMESTAMPS: MaybeTimestamps, CONTENTS: MaybeContents, STRINGS: MaybeStrings, LABELNAMES: MaybeLabelNames> GraphSpy<G, MAPS, TIMESTAMPS, NoPersons, CONTENTS, STRINGS, LABELNAMES>
impl<G: SwhGraphWithProperties<Persons: OptPersons>, MAPS: MaybeMaps, TIMESTAMPS: MaybeTimestamps, CONTENTS: MaybeContents, STRINGS: MaybeStrings, LABELNAMES: MaybeLabelNames> GraphSpy<G, MAPS, TIMESTAMPS, NoPersons, CONTENTS, STRINGS, LABELNAMES>
pub fn with_persons( self, ) -> GraphSpy<G, MAPS, TIMESTAMPS, PersonsSpy<G>, CONTENTS, STRINGS, LABELNAMES>
Source§impl<G: SwhGraphWithProperties<Strings: OptStrings>, MAPS: MaybeMaps, TIMESTAMPS: MaybeTimestamps, PERSONS: MaybePersons, CONTENTS: MaybeContents, LABELNAMES: MaybeLabelNames> GraphSpy<G, MAPS, TIMESTAMPS, PERSONS, CONTENTS, NoStrings, LABELNAMES>
impl<G: SwhGraphWithProperties<Strings: OptStrings>, MAPS: MaybeMaps, TIMESTAMPS: MaybeTimestamps, PERSONS: MaybePersons, CONTENTS: MaybeContents, LABELNAMES: MaybeLabelNames> GraphSpy<G, MAPS, TIMESTAMPS, PERSONS, CONTENTS, NoStrings, LABELNAMES>
pub fn with_strings( self, ) -> GraphSpy<G, MAPS, TIMESTAMPS, PERSONS, CONTENTS, StringsSpy<G>, LABELNAMES>
Source§impl<G: SwhGraphWithProperties<Timestamps: OptTimestamps>, MAPS: MaybeMaps, PERSONS: MaybePersons, CONTENTS: MaybeContents, STRINGS: MaybeStrings, LABELNAMES: MaybeLabelNames> GraphSpy<G, MAPS, NoTimestamps, PERSONS, CONTENTS, STRINGS, LABELNAMES>
impl<G: SwhGraphWithProperties<Timestamps: OptTimestamps>, MAPS: MaybeMaps, PERSONS: MaybePersons, CONTENTS: MaybeContents, STRINGS: MaybeStrings, LABELNAMES: MaybeLabelNames> GraphSpy<G, MAPS, NoTimestamps, PERSONS, CONTENTS, STRINGS, LABELNAMES>
pub fn with_timestamps( self, ) -> GraphSpy<G, MAPS, TimestampsSpy<G>, PERSONS, CONTENTS, STRINGS, LABELNAMES>
Source§impl<G: SwhGraph> GraphSpy<G, NoMaps, NoTimestamps, NoPersons, NoContents, NoStrings, NoLabelNames>
impl<G: SwhGraph> GraphSpy<G, NoMaps, NoTimestamps, NoPersons, NoContents, NoStrings, NoLabelNames>
Source§impl<G, MAPS, TIMESTAMPS, PERSONS, CONTENTS, STRINGS, LABELNAMES> GraphSpy<G, MAPS, TIMESTAMPS, PERSONS, CONTENTS, STRINGS, LABELNAMES>where
G: SwhGraph,
MAPS: MaybeMaps,
TIMESTAMPS: MaybeTimestamps,
PERSONS: MaybePersons,
CONTENTS: MaybeContents,
STRINGS: MaybeStrings,
LABELNAMES: MaybeLabelNames,
impl<G, MAPS, TIMESTAMPS, PERSONS, CONTENTS, STRINGS, LABELNAMES> GraphSpy<G, MAPS, TIMESTAMPS, PERSONS, CONTENTS, STRINGS, LABELNAMES>where
G: SwhGraph,
MAPS: MaybeMaps,
TIMESTAMPS: MaybeTimestamps,
PERSONS: MaybePersons,
CONTENTS: MaybeContents,
STRINGS: MaybeStrings,
LABELNAMES: MaybeLabelNames,
Trait Implementations§
Source§impl<G: Debug + SwhGraph, MAPS: Debug + MaybeMaps, TIMESTAMPS: Debug + MaybeTimestamps, PERSONS: Debug + MaybePersons, CONTENTS: Debug + MaybeContents, STRINGS: Debug + MaybeStrings, LABELNAMES: Debug + MaybeLabelNames> Debug for GraphSpy<G, MAPS, TIMESTAMPS, PERSONS, CONTENTS, STRINGS, LABELNAMES>
impl<G: Debug + SwhGraph, MAPS: Debug + MaybeMaps, TIMESTAMPS: Debug + MaybeTimestamps, PERSONS: Debug + MaybePersons, CONTENTS: Debug + MaybeContents, STRINGS: Debug + MaybeStrings, LABELNAMES: Debug + MaybeLabelNames> Debug for GraphSpy<G, MAPS, TIMESTAMPS, PERSONS, CONTENTS, STRINGS, LABELNAMES>
Source§impl<G, MAPS, TIMESTAMPS, PERSONS, CONTENTS, STRINGS, LABELNAMES> SwhBackwardGraph for GraphSpy<G, MAPS, TIMESTAMPS, PERSONS, CONTENTS, STRINGS, LABELNAMES>where
G: SwhBackwardGraph,
MAPS: MaybeMaps,
TIMESTAMPS: MaybeTimestamps,
PERSONS: MaybePersons,
CONTENTS: MaybeContents,
STRINGS: MaybeStrings,
LABELNAMES: MaybeLabelNames,
impl<G, MAPS, TIMESTAMPS, PERSONS, CONTENTS, STRINGS, LABELNAMES> SwhBackwardGraph for GraphSpy<G, MAPS, TIMESTAMPS, PERSONS, CONTENTS, STRINGS, LABELNAMES>where
G: SwhBackwardGraph,
MAPS: MaybeMaps,
TIMESTAMPS: MaybeTimestamps,
PERSONS: MaybePersons,
CONTENTS: MaybeContents,
STRINGS: MaybeStrings,
LABELNAMES: MaybeLabelNames,
type Predecessors<'succ> = <G as SwhBackwardGraph>::Predecessors<'succ> where Self: 'succ
Source§fn predecessors(&self, node_id: NodeId) -> Self::Predecessors<'_>
fn predecessors(&self, node_id: NodeId) -> Self::Predecessors<'_>
Return an
IntoIterator over the predecessors of a node.Source§impl<G, MAPS, TIMESTAMPS, PERSONS, CONTENTS, STRINGS, LABELNAMES> SwhForwardGraph for GraphSpy<G, MAPS, TIMESTAMPS, PERSONS, CONTENTS, STRINGS, LABELNAMES>where
G: SwhForwardGraph,
MAPS: MaybeMaps,
TIMESTAMPS: MaybeTimestamps,
PERSONS: MaybePersons,
CONTENTS: MaybeContents,
STRINGS: MaybeStrings,
LABELNAMES: MaybeLabelNames,
impl<G, MAPS, TIMESTAMPS, PERSONS, CONTENTS, STRINGS, LABELNAMES> SwhForwardGraph for GraphSpy<G, MAPS, TIMESTAMPS, PERSONS, CONTENTS, STRINGS, LABELNAMES>where
G: SwhForwardGraph,
MAPS: MaybeMaps,
TIMESTAMPS: MaybeTimestamps,
PERSONS: MaybePersons,
CONTENTS: MaybeContents,
STRINGS: MaybeStrings,
LABELNAMES: MaybeLabelNames,
type Successors<'succ> = <G as SwhForwardGraph>::Successors<'succ> where Self: 'succ
Source§fn successors(&self, node_id: NodeId) -> Self::Successors<'_>
fn successors(&self, node_id: NodeId) -> Self::Successors<'_>
Return an
IntoIterator over the successors of a node.Source§impl<G, MAPS, TIMESTAMPS, PERSONS, CONTENTS, STRINGS, LABELNAMES> SwhGraph for GraphSpy<G, MAPS, TIMESTAMPS, PERSONS, CONTENTS, STRINGS, LABELNAMES>where
G: SwhGraph,
MAPS: MaybeMaps,
TIMESTAMPS: MaybeTimestamps,
PERSONS: MaybePersons,
CONTENTS: MaybeContents,
STRINGS: MaybeStrings,
LABELNAMES: MaybeLabelNames,
impl<G, MAPS, TIMESTAMPS, PERSONS, CONTENTS, STRINGS, LABELNAMES> SwhGraph for GraphSpy<G, MAPS, TIMESTAMPS, PERSONS, CONTENTS, STRINGS, LABELNAMES>where
G: SwhGraph,
MAPS: MaybeMaps,
TIMESTAMPS: MaybeTimestamps,
PERSONS: MaybePersons,
CONTENTS: MaybeContents,
STRINGS: MaybeStrings,
LABELNAMES: MaybeLabelNames,
Source§fn is_transposed(&self) -> bool
fn is_transposed(&self) -> bool
Returns whether the graph is in the
ori->snp->rel,rev->dir->cnt direction
(with a few dir->rev arcs)Source§fn has_node(&self, node_id: NodeId) -> bool
fn has_node(&self, node_id: NodeId) -> bool
Returns whether the given node id exists in the graph Read more
Source§fn num_nodes_by_type(&self) -> Result<HashMap<NodeType, usize>>
fn num_nodes_by_type(&self) -> Result<HashMap<NodeType, usize>>
Returns the number of nodes of each type, if known.
Source§fn num_arcs_by_type(&self) -> Result<HashMap<(NodeType, NodeType), usize>>
fn num_arcs_by_type(&self) -> Result<HashMap<(NodeType, NodeType), usize>>
Returns the number of arcs of each type, if known.
Source§fn has_arc(&self, src_node_id: NodeId, dst_node_id: NodeId) -> bool
fn has_arc(&self, src_node_id: NodeId, dst_node_id: NodeId) -> bool
Return whether there is an arc going from
src_node_id to dst_node_id.Source§fn actual_num_nodes(&self) -> Result<usize>
fn actual_num_nodes(&self) -> Result<usize>
Returns the number of nodes in the graph, if known.
Source§fn iter_nodes<'a>(
&'a self,
pl: impl ProgressLog + 'a,
) -> impl Iterator<Item = NodeId> + 'a
fn iter_nodes<'a>( &'a self, pl: impl ProgressLog + 'a, ) -> impl Iterator<Item = NodeId> + 'a
Returns an iterator on all the nodes Read more
Source§fn par_iter_nodes<'a>(
&'a self,
pl: impl ConcurrentProgressLog + 'a,
) -> impl ParallelIterator<Item = NodeId> + 'awhere
Self: Sync,
fn par_iter_nodes<'a>(
&'a self,
pl: impl ConcurrentProgressLog + 'a,
) -> impl ParallelIterator<Item = NodeId> + 'awhere
Self: Sync,
Returns a parallel iterator on all the nodes Read more
Source§impl<G, MAPS, TIMESTAMPS, PERSONS, CONTENTS, STRINGS, LABELNAMES> SwhGraphWithProperties for GraphSpy<G, MAPS, TIMESTAMPS, PERSONS, CONTENTS, STRINGS, LABELNAMES>where
G: SwhGraphWithProperties,
MAPS: MaybeMaps,
TIMESTAMPS: MaybeTimestamps,
PERSONS: MaybePersons,
CONTENTS: MaybeContents,
STRINGS: MaybeStrings,
LABELNAMES: MaybeLabelNames,
impl<G, MAPS, TIMESTAMPS, PERSONS, CONTENTS, STRINGS, LABELNAMES> SwhGraphWithProperties for GraphSpy<G, MAPS, TIMESTAMPS, PERSONS, CONTENTS, STRINGS, LABELNAMES>where
G: SwhGraphWithProperties,
MAPS: MaybeMaps,
TIMESTAMPS: MaybeTimestamps,
PERSONS: MaybePersons,
CONTENTS: MaybeContents,
STRINGS: MaybeStrings,
LABELNAMES: MaybeLabelNames,
type Maps = MAPS
type Timestamps = TIMESTAMPS
type Persons = PERSONS
type Contents = CONTENTS
type Strings = STRINGS
type LabelNames = LABELNAMES
fn properties( &self, ) -> &SwhGraphProperties<Self::Maps, Self::Timestamps, Self::Persons, Self::Contents, Self::Strings, Self::LabelNames>
Source§impl<G, MAPS, TIMESTAMPS, PERSONS, CONTENTS, STRINGS, LABELNAMES> SwhLabeledBackwardGraph for GraphSpy<G, MAPS, TIMESTAMPS, PERSONS, CONTENTS, STRINGS, LABELNAMES>where
G: SwhLabeledBackwardGraph,
MAPS: Maps,
TIMESTAMPS: MaybeTimestamps,
PERSONS: MaybePersons,
CONTENTS: MaybeContents,
STRINGS: MaybeStrings,
LABELNAMES: MaybeLabelNames,
impl<G, MAPS, TIMESTAMPS, PERSONS, CONTENTS, STRINGS, LABELNAMES> SwhLabeledBackwardGraph for GraphSpy<G, MAPS, TIMESTAMPS, PERSONS, CONTENTS, STRINGS, LABELNAMES>where
G: SwhLabeledBackwardGraph,
MAPS: Maps,
TIMESTAMPS: MaybeTimestamps,
PERSONS: MaybePersons,
CONTENTS: MaybeContents,
STRINGS: MaybeStrings,
LABELNAMES: MaybeLabelNames,
type LabeledArcs<'arc> = <G as SwhLabeledBackwardGraph>::LabeledArcs<'arc> where Self: 'arc
type LabeledPredecessors<'succ> = <G as SwhLabeledBackwardGraph>::LabeledPredecessors<'succ> where Self: 'succ
Source§fn untyped_labeled_predecessors(
&self,
node_id: NodeId,
) -> Self::LabeledPredecessors<'_>
fn untyped_labeled_predecessors( &self, node_id: NodeId, ) -> Self::LabeledPredecessors<'_>
Return an
IntoIterator over the predecessors of a node along with a list of labels
of each arcSource§fn labeled_predecessors(
&self,
node_id: NodeId,
) -> impl IntoIterator<Item = (usize, impl Iterator<Item = EdgeLabel>)> + IntoFlattenedLabeledArcsIterator<EdgeLabel> + '_
fn labeled_predecessors( &self, node_id: NodeId, ) -> impl IntoIterator<Item = (usize, impl Iterator<Item = EdgeLabel>)> + IntoFlattenedLabeledArcsIterator<EdgeLabel> + '_
Return an
IntoIterator over the predecessors of a node along with a list of labels
of each arcSource§impl<G, MAPS, TIMESTAMPS, PERSONS, CONTENTS, STRINGS, LABELNAMES> SwhLabeledForwardGraph for GraphSpy<G, MAPS, TIMESTAMPS, PERSONS, CONTENTS, STRINGS, LABELNAMES>where
G: SwhLabeledForwardGraph,
MAPS: Maps,
TIMESTAMPS: MaybeTimestamps,
PERSONS: MaybePersons,
CONTENTS: MaybeContents,
STRINGS: MaybeStrings,
LABELNAMES: MaybeLabelNames,
impl<G, MAPS, TIMESTAMPS, PERSONS, CONTENTS, STRINGS, LABELNAMES> SwhLabeledForwardGraph for GraphSpy<G, MAPS, TIMESTAMPS, PERSONS, CONTENTS, STRINGS, LABELNAMES>where
G: SwhLabeledForwardGraph,
MAPS: Maps,
TIMESTAMPS: MaybeTimestamps,
PERSONS: MaybePersons,
CONTENTS: MaybeContents,
STRINGS: MaybeStrings,
LABELNAMES: MaybeLabelNames,
type LabeledArcs<'arc> = <G as SwhLabeledForwardGraph>::LabeledArcs<'arc> where Self: 'arc
type LabeledSuccessors<'succ> = <G as SwhLabeledForwardGraph>::LabeledSuccessors<'succ> where Self: 'succ
Source§fn untyped_labeled_successors(
&self,
node_id: NodeId,
) -> Self::LabeledSuccessors<'_>
fn untyped_labeled_successors( &self, node_id: NodeId, ) -> Self::LabeledSuccessors<'_>
Return an
IntoIterator over the successors of a node along with a list of labels
of each arcSource§fn labeled_successors(
&self,
node_id: NodeId,
) -> impl Iterator<Item = (usize, impl Iterator<Item = EdgeLabel>)> + IntoFlattenedLabeledArcsIterator<EdgeLabel> + '_
fn labeled_successors( &self, node_id: NodeId, ) -> impl Iterator<Item = (usize, impl Iterator<Item = EdgeLabel>)> + IntoFlattenedLabeledArcsIterator<EdgeLabel> + '_
Return an
IntoIterator over the successors of a node along with a list of labels
of each arcAuto Trait Implementations§
impl<G, MAPS = NoMaps, TIMESTAMPS = NoTimestamps, PERSONS = NoPersons, CONTENTS = NoContents, STRINGS = NoStrings, LABELNAMES = NoLabelNames> !Freeze for GraphSpy<G, MAPS, TIMESTAMPS, PERSONS, CONTENTS, STRINGS, LABELNAMES>
impl<G, MAPS, TIMESTAMPS, PERSONS, CONTENTS, STRINGS, LABELNAMES> RefUnwindSafe for GraphSpy<G, MAPS, TIMESTAMPS, PERSONS, CONTENTS, STRINGS, LABELNAMES>where
MAPS: RefUnwindSafe,
TIMESTAMPS: RefUnwindSafe,
PERSONS: RefUnwindSafe,
CONTENTS: RefUnwindSafe,
STRINGS: RefUnwindSafe,
LABELNAMES: RefUnwindSafe,
G: RefUnwindSafe,
impl<G, MAPS, TIMESTAMPS, PERSONS, CONTENTS, STRINGS, LABELNAMES> Send for GraphSpy<G, MAPS, TIMESTAMPS, PERSONS, CONTENTS, STRINGS, LABELNAMES>
impl<G, MAPS, TIMESTAMPS, PERSONS, CONTENTS, STRINGS, LABELNAMES> Sync for GraphSpy<G, MAPS, TIMESTAMPS, PERSONS, CONTENTS, STRINGS, LABELNAMES>
impl<G, MAPS, TIMESTAMPS, PERSONS, CONTENTS, STRINGS, LABELNAMES> Unpin for GraphSpy<G, MAPS, TIMESTAMPS, PERSONS, CONTENTS, STRINGS, LABELNAMES>
impl<G, MAPS, TIMESTAMPS, PERSONS, CONTENTS, STRINGS, LABELNAMES> UnsafeUnpin for GraphSpy<G, MAPS, TIMESTAMPS, PERSONS, CONTENTS, STRINGS, LABELNAMES>where
MAPS: UnsafeUnpin,
TIMESTAMPS: UnsafeUnpin,
PERSONS: UnsafeUnpin,
CONTENTS: UnsafeUnpin,
STRINGS: UnsafeUnpin,
LABELNAMES: UnsafeUnpin,
impl<G, MAPS, TIMESTAMPS, PERSONS, CONTENTS, STRINGS, LABELNAMES> UnwindSafe for GraphSpy<G, MAPS, TIMESTAMPS, PERSONS, CONTENTS, STRINGS, LABELNAMES>where
MAPS: UnwindSafe,
TIMESTAMPS: UnwindSafe,
PERSONS: UnwindSafe,
CONTENTS: UnwindSafe,
STRINGS: UnwindSafe,
LABELNAMES: UnwindSafe,
G: RefUnwindSafe,
Blanket Implementations§
impl<T> Allocation for T
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T, U> CastableInto<U> for Twhere
U: CastableFrom<T>,
impl<T, U> CastableInto<U> for Twhere
U: CastableFrom<T>,
Source§impl<T> DowncastableFrom<T> for T
impl<T> DowncastableFrom<T> for T
Source§fn downcast_from(value: T) -> T
fn downcast_from(value: T) -> T
Truncate the current UnsignedInt to a possibly smaller size
Source§impl<T, U> DowncastableInto<U> for Twhere
U: DowncastableFrom<T>,
impl<T, U> DowncastableInto<U> for Twhere
U: DowncastableFrom<T>,
Source§impl<T, W> HasTypeWitness<W> for Twhere
W: MakeTypeWitness<Arg = T>,
T: ?Sized,
impl<T, W> HasTypeWitness<W> for Twhere
W: MakeTypeWitness<Arg = T>,
T: ?Sized,
Source§impl<T> Identity for Twhere
T: ?Sized,
impl<T> Identity for Twhere
T: ?Sized,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§impl<T> Pointable for T
impl<T> Pointable for T
impl<T> Read<Exclusive, BecauseExclusive> for Twhere
T: ?Sized,
Source§impl<T> UpcastableFrom<T> for T
impl<T> UpcastableFrom<T> for T
Source§fn upcast_from(value: T) -> T
fn upcast_from(value: T) -> T
Extend the current UnsignedInt to a possibly bigger size.