#[non_exhaustive]pub enum RdLinkDestination<'a> {
DisplayText {
nodes: &'a [RdNode],
},
Explicit {
topic: &'a str,
},
Package {
package: &'a str,
topic: RdLinkTopic<'a>,
},
}Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Trait Implementations§
Source§impl<'a> Clone for RdLinkDestination<'a>
impl<'a> Clone for RdLinkDestination<'a>
Source§fn clone(&self) -> RdLinkDestination<'a>
fn clone(&self) -> RdLinkDestination<'a>
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl<'a> Debug for RdLinkDestination<'a>
impl<'a> Debug for RdLinkDestination<'a>
Source§impl<'a> PartialEq for RdLinkDestination<'a>
impl<'a> PartialEq for RdLinkDestination<'a>
impl<'a> StructuralPartialEq for RdLinkDestination<'a>
Auto Trait Implementations§
impl<'a> Freeze for RdLinkDestination<'a>
impl<'a> RefUnwindSafe for RdLinkDestination<'a>
impl<'a> Send for RdLinkDestination<'a>
impl<'a> Sync for RdLinkDestination<'a>
impl<'a> Unpin for RdLinkDestination<'a>
impl<'a> UnsafeUnpin for RdLinkDestination<'a>
impl<'a> UnwindSafe for RdLinkDestination<'a>
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