pub enum SemanticInput<T> {
Name(PublicName),
Selector(T),
Reference(ObjectRef),
}Expand description
Retains legacy names while accepting the canonical selectors used by the catalogue. Resolution belongs to the retained application Session.
Variants§
Implementations§
Source§impl<T> SemanticInput<T>
impl<T> SemanticInput<T>
pub fn into_legacy_name(self) -> Result<PublicName, &'static str>
Trait Implementations§
Source§impl<T: Clone> Clone for SemanticInput<T>
impl<T: Clone> Clone for SemanticInput<T>
Source§fn clone(&self) -> SemanticInput<T>
fn clone(&self) -> SemanticInput<T>
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<T: Debug> Debug for SemanticInput<T>
impl<T: Debug> Debug for SemanticInput<T>
Source§impl<'de, T> Deserialize<'de> for SemanticInput<T>where
T: Deserialize<'de>,
impl<'de, T> Deserialize<'de> for SemanticInput<T>where
T: Deserialize<'de>,
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<T> From<PublicName> for SemanticInput<T>
impl<T> From<PublicName> for SemanticInput<T>
Source§fn from(name: PublicName) -> Self
fn from(name: PublicName) -> Self
Converts to this type from the input type.
Source§impl<T: PartialEq> PartialEq for SemanticInput<T>
impl<T: PartialEq> PartialEq for SemanticInput<T>
Source§impl<T> Serialize for SemanticInput<T>where
T: Serialize,
impl<T> Serialize for SemanticInput<T>where
T: Serialize,
impl<T: Eq> Eq for SemanticInput<T>
impl<T> StructuralPartialEq for SemanticInput<T>
Auto Trait Implementations§
impl<T> Freeze for SemanticInput<T>where
T: Freeze,
impl<T> RefUnwindSafe for SemanticInput<T>where
T: RefUnwindSafe,
impl<T> Send for SemanticInput<T>where
T: Send,
impl<T> Sync for SemanticInput<T>where
T: Sync,
impl<T> Unpin for SemanticInput<T>where
T: Unpin,
impl<T> UnsafeUnpin for SemanticInput<T>where
T: UnsafeUnpin,
impl<T> UnwindSafe for SemanticInput<T>where
T: UnwindSafe,
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