pub struct StaticSegment {
pub name: &'static str,
pub offset: u32,
pub size: u32,
}Expand description
A compile-time constant segment descriptor.
Describes a named byte region within an account’s data area. All fields are const-evaluable.
Fields§
§name: &'static strField name (compile-time string).
offset: u32Byte offset from the start of the layout body (after header).
size: u32Byte size of this segment.
Implementations§
Trait Implementations§
Source§impl Clone for StaticSegment
impl Clone for StaticSegment
Source§fn clone(&self) -> StaticSegment
fn clone(&self) -> StaticSegment
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 moreSource§impl Debug for StaticSegment
impl Debug for StaticSegment
Source§impl PartialEq for StaticSegment
impl PartialEq for StaticSegment
Source§fn eq(&self, other: &StaticSegment) -> bool
fn eq(&self, other: &StaticSegment) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Copy for StaticSegment
impl Eq for StaticSegment
impl StructuralPartialEq for StaticSegment
Auto Trait Implementations§
impl Freeze for StaticSegment
impl RefUnwindSafe for StaticSegment
impl Send for StaticSegment
impl Sync for StaticSegment
impl Unpin for StaticSegment
impl UnsafeUnpin for StaticSegment
impl UnwindSafe for StaticSegment
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