pub struct EmptyTypeDecl {
pub visibility: Visibility,
pub ident: TypeIdent,
pub span: Span,
}Expand description
An empty struct without any fields e.g.: type Empty
Fields§
§visibility: Visibility§ident: TypeIdent§span: SpanTrait Implementations§
Source§impl AstNode for EmptyTypeDecl
impl AstNode for EmptyTypeDecl
Source§impl Debug for EmptyTypeDecl
impl Debug for EmptyTypeDecl
Source§impl From<EmptyTypeDecl> for TypeDecl
impl From<EmptyTypeDecl> for TypeDecl
Source§fn from(original: EmptyTypeDecl) -> TypeDecl
fn from(original: EmptyTypeDecl) -> TypeDecl
Converts to this type from the input type.
Source§impl PartialEq for EmptyTypeDecl
impl PartialEq for EmptyTypeDecl
impl Eq for EmptyTypeDecl
impl StructuralPartialEq for EmptyTypeDecl
Auto Trait Implementations§
impl Freeze for EmptyTypeDecl
impl RefUnwindSafe for EmptyTypeDecl
impl Send for EmptyTypeDecl
impl Sync for EmptyTypeDecl
impl Unpin for EmptyTypeDecl
impl UnwindSafe for EmptyTypeDecl
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> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more