pub enum Recipients {
Single(Surface),
Multi(Vec<Surface>),
Watchers(Watch),
Stars,
}
Variants§
Implementations§
Source§impl Recipients
impl Recipients
Source§impl Recipients
impl Recipients
pub fn select_ports(&self, point: &Point) -> Vec<&Surface>
pub fn is_single(&self) -> bool
pub fn is_multi(&self) -> bool
pub fn is_stars(&self) -> bool
pub fn is_watch(&self) -> bool
pub fn unwrap_single(self) -> Surface
pub fn single_or(self) -> Result<Surface, SpaceErr>
Trait Implementations§
Source§impl Clone for Recipients
impl Clone for Recipients
Source§fn clone(&self) -> Recipients
fn clone(&self) -> Recipients
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 Recipients
impl Debug for Recipients
Source§impl<'de> Deserialize<'de> for Recipients
impl<'de> Deserialize<'de> for Recipients
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Into<Recipients> for Surface
impl Into<Recipients> for Surface
Source§fn into(self) -> Recipients
fn into(self) -> Recipients
Converts this type into the (usually inferred) input type.
Source§impl PartialEq for Recipients
impl PartialEq for Recipients
Source§impl Serialize for Recipients
impl Serialize for Recipients
Source§impl ToRecipients for &Recipients
impl ToRecipients for &Recipients
fn to_recipients(self) -> Recipients
Source§impl ToRecipients for Recipients
impl ToRecipients for Recipients
fn to_recipients(self) -> Recipients
Source§impl ToString for Recipients
impl ToString for Recipients
impl Eq for Recipients
impl StructuralPartialEq for Recipients
Auto Trait Implementations§
impl Freeze for Recipients
impl RefUnwindSafe for Recipients
impl Send for Recipients
impl Sync for Recipients
impl Unpin for Recipients
impl UnwindSafe for Recipients
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<I, T> ExtractContext<I, ()> for T
impl<I, T> ExtractContext<I, ()> for T
Source§fn extract_context(self, _original_input: I)
fn extract_context(self, _original_input: I)
Given the context attached to a nom error, and given the original
input to the nom parser, extract more the useful context information. Read more
Source§impl<I> RecreateContext<I> for I
impl<I> RecreateContext<I> for I
Source§fn recreate_context(_original_input: I, tail: I) -> I
fn recreate_context(_original_input: I, tail: I) -> I
Given the original input, as well as the context reported by nom,
recreate a context in the original string where the error occurred. Read more