Struct pgx_pg_sys::MemoryContextData
source · [−]#[repr(C)]pub struct MemoryContextData {
pub type_: NodeTag,
pub isReset: bool,
pub allowInCritSection: bool,
pub mem_allocated: Size,
pub methods: *const MemoryContextMethods,
pub parent: MemoryContext,
pub firstchild: MemoryContext,
pub prevchild: MemoryContext,
pub nextchild: MemoryContext,
pub name: *const c_char,
pub ident: *const c_char,
pub reset_cbs: *mut MemoryContextCallback,
}
Fields
type_: NodeTag
isReset: bool
allowInCritSection: bool
mem_allocated: Size
methods: *const MemoryContextMethods
parent: MemoryContext
firstchild: MemoryContext
prevchild: MemoryContext
nextchild: MemoryContext
name: *const c_char
ident: *const c_char
reset_cbs: *mut MemoryContextCallback
Trait Implementations
sourceimpl Clone for MemoryContextData
impl Clone for MemoryContextData
sourcefn clone(&self) -> MemoryContextData
fn clone(&self) -> MemoryContextData
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for MemoryContextData
impl Debug for MemoryContextData
sourceimpl Default for MemoryContextData
impl Default for MemoryContextData
sourceimpl Display for MemoryContextData
impl Display for MemoryContextData
sourceimpl PgNode for MemoryContextData
impl PgNode for MemoryContextData
type NodeType = MemoryContextData
sourcefn as_node_ptr(&self) -> *mut Self::NodeType
fn as_node_ptr(&self) -> *mut Self::NodeType
Represent this node as a mutable pointer of its type
impl Copy for MemoryContextData
Auto Trait Implementations
impl RefUnwindSafe for MemoryContextData
impl !Send for MemoryContextData
impl !Sync for MemoryContextData
impl Unpin for MemoryContextData
impl UnwindSafe for MemoryContextData
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcepub fn borrow_mut(&mut self) -> &mut T
pub fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcepub fn to_owned(&self) -> T
pub fn to_owned(&self) -> T
Creates owned data from borrowed data, usually by cloning. Read more
sourcepub fn clone_into(&self, target: &mut T)
pub fn clone_into(&self, target: &mut T)
🔬 This is a nightly-only experimental API. (
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more