[−][src]Enum ultra_tournament::TournamentNode
The node weight of a Tournament
's internal graph.
Variants
Entrant(EntrantId)
Represents the starting point of an entrant within the tournament bracket. Links to exactly one Round
node.
Round(TournamentRound<M>)
Represents a round in the tournament. Links to two previous rounds or entrant nodes, and one future round node (except for the final round)
Implementations
impl<M: Debug + Display + Clone + Default> TournamentNode<M>
[src]
pub fn entrant(&self) -> Option<&EntrantId>
[src]
Get the entrant of the node. Returns None
if the node is a TournamentNode::Round
pub fn round(&self) -> Option<&TournamentRound<M>>
[src]
Get the round of the node. Returns None
if the node is a TournamentNode::Entrant
pub fn metadata(&self) -> Option<&M>
[src]
Get the metadata of a node. Returns None
if the node is a TournamentNode::Entrant
, or is incomplete.
pub fn metadata_mut(&mut self) -> Option<&mut M>
[src]
Get a mutable reference to the metadata of a node. Returns None
if the node is a TournamentNode::Entrant
, or is incomplete.
pub fn result(&self) -> Option<&TournamentRoundResult>
[src]
Get the result of a node. Returns None
if the node is a TournamentNode::Entrant
, or is incomplete.
Trait Implementations
impl<M: Clone + Debug + Display + Default> Clone for TournamentNode<M>
[src]
fn clone(&self) -> TournamentNode<M>
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl<M: Copy + Debug + Display + Clone + Default> Copy for TournamentNode<M>
[src]
impl<M: Debug + Display + Clone + Default> Debug for TournamentNode<M>
[src]
impl<M: Debug + Display + Clone + Default> Display for TournamentNode<M>
[src]
Auto Trait Implementations
impl<M> RefUnwindSafe for TournamentNode<M> where
M: RefUnwindSafe,
M: RefUnwindSafe,
impl<M> Send for TournamentNode<M> where
M: Send,
M: Send,
impl<M> Sync for TournamentNode<M> where
M: Sync,
M: Sync,
impl<M> Unpin for TournamentNode<M> where
M: Unpin,
M: Unpin,
impl<M> UnwindSafe for TournamentNode<M> where
M: UnwindSafe,
M: UnwindSafe,
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Any for T where
T: Any,
T: Any,
fn get_type_id(&self) -> TypeId
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Event for T where
T: Send + Sync + 'static,
T: Send + Sync + 'static,
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> Resource for T where
T: Any + Send + Sync,
T: Any + Send + Sync,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T> ToString for T where
T: Display + ?Sized,
[src]
T: Display + ?Sized,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,