Enum golang_struct_tag::StructTag[][src]

pub enum StructTag {
    RawStringLiteral(String),
    InterpretedStringLiteral(String),
    Convention(HashSet<ConventionStructTag>),
}

Variants

RawStringLiteral(String)
InterpretedStringLiteral(String)

Implementations

impl StructTag[src]

impl StructTag[src]

pub fn from_raw_string_literal_node(
    node: Node<'_>,
    source: &[u8]
) -> Result<Self, StructTagParseError>
[src]

pub fn from_interpreted_string_literal_node(
    node: Node<'_>,
    source: &[u8]
) -> Result<Self, StructTagParseError>
[src]

Trait Implementations

impl Clone for StructTag[src]

impl Debug for StructTag[src]

impl Eq for StructTag[src]

impl FromStr for StructTag[src]

type Err = StructTagParseError

The associated error which can be returned from parsing.

impl PartialEq<StructTag> for StructTag[src]

impl StructuralEq for StructTag[src]

impl StructuralPartialEq for StructTag[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.