pub struct GlobalDecl {
pub name: String,
pub space: AddressSpace,
pub ty: PtxType,
pub size: usize,
pub init: Option<Vec<u8>>,
}Expand description
Global declaration
Fields§
§name: StringName
space: AddressSpaceAddress space
ty: PtxTypeType
size: usizeSize in bytes
init: Option<Vec<u8>>Initial value (if any)
Trait Implementations§
Source§impl Clone for GlobalDecl
impl Clone for GlobalDecl
Source§fn clone(&self) -> GlobalDecl
fn clone(&self) -> GlobalDecl
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 moreAuto Trait Implementations§
impl Freeze for GlobalDecl
impl RefUnwindSafe for GlobalDecl
impl Send for GlobalDecl
impl Sync for GlobalDecl
impl Unpin for GlobalDecl
impl UnsafeUnpin for GlobalDecl
impl UnwindSafe for GlobalDecl
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