Struct rustc_ast::ast::StaticForeignItem
source · pub struct StaticForeignItem {
pub ty: P<Ty>,
pub mutability: Mutability,
pub expr: Option<P<Expr>>,
}Expand description
A static item in extern block.
Fields§
§ty: P<Ty>§mutability: Mutability§expr: Option<P<Expr>>Trait Implementations§
source§impl Clone for StaticForeignItem
impl Clone for StaticForeignItem
source§fn clone(&self) -> StaticForeignItem
fn clone(&self) -> StaticForeignItem
Returns a copy 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 StaticForeignItem
impl Debug for StaticForeignItem
source§impl<__D: SpanDecoder> Decodable<__D> for StaticForeignItem
impl<__D: SpanDecoder> Decodable<__D> for StaticForeignItem
source§impl<__E: SpanEncoder> Encodable<__E> for StaticForeignItem
impl<__E: SpanEncoder> Encodable<__E> for StaticForeignItem
source§impl From<StaticForeignItem> for StaticItem
impl From<StaticForeignItem> for StaticItem
source§fn from(static_item: StaticForeignItem) -> StaticItem
fn from(static_item: StaticForeignItem) -> StaticItem
Converts to this type from the input type.
source§impl From<StaticItem> for StaticForeignItem
impl From<StaticItem> for StaticForeignItem
source§fn from(static_item: StaticItem) -> StaticForeignItem
fn from(static_item: StaticItem) -> StaticForeignItem
Converts to this type from the input type.
Auto Trait Implementations§
impl DynSend for StaticForeignItem
impl DynSync for StaticForeignItem
impl Freeze for StaticForeignItem
impl !RefUnwindSafe for StaticForeignItem
impl !Send for StaticForeignItem
impl !Sync for StaticForeignItem
impl Unpin for StaticForeignItem
impl !UnwindSafe for StaticForeignItem
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> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
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 moresource§impl<T> Pointable for T
impl<T> Pointable for T
source§impl<T> WithSubscriber for T
impl<T> WithSubscriber for T
source§fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
source§fn with_current_subscriber(self) -> WithDispatch<Self>
fn with_current_subscriber(self) -> WithDispatch<Self>
impl<'a, T> Captures<'a> for Twhere
T: ?Sized,
Layout§
Note: Most layout information is completely unstable and may even differ between compilations. The only exception is types with certain repr(...) attributes. Please see the Rust Reference's “Type Layout” chapter for details on type layout guarantees.
Size: 24 bytes