pub struct Declaration {
pub specs: DeclSpecs,
pub declarators: Vec<InitDeclarator>,
pub info: NodeInfo,
pub comments: Vec<Comment>,
pub is_target: bool,
}Expand description
宣言
Fields§
§specs: DeclSpecs§declarators: Vec<InitDeclarator>§info: NodeInfo§comments: Vec<Comment>§is_target: boolターゲットディレクトリで定義されたかどうか
Implementations§
Source§impl Declaration
impl Declaration
Sourcepub fn loc(&self) -> &SourceLocation
pub fn loc(&self) -> &SourceLocation
後方互換性のための loc アクセサ
Trait Implementations§
Source§impl Clone for Declaration
impl Clone for Declaration
Source§fn clone(&self) -> Declaration
fn clone(&self) -> Declaration
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for Declaration
impl RefUnwindSafe for Declaration
impl Send for Declaration
impl Sync for Declaration
impl Unpin for Declaration
impl UnsafeUnpin for Declaration
impl UnwindSafe for Declaration
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