pub struct OwnedCompositeTypeDescriptor(/* private fields */);Expand description
A descriptor read shares either an existing immutable catalog generation or the newly admitted producer result. A produced descriptor cannot be extracted as a raw Arc that would discard its lease.
Implementations§
Source§impl OwnedCompositeTypeDescriptor
impl OwnedCompositeTypeDescriptor
Sourcepub fn retained(descriptor: Arc<CompositeTypeDescriptor>) -> Self
pub fn retained(descriptor: Arc<CompositeTypeDescriptor>) -> Self
Share metadata that an existing catalog owner already retains, without copying its attributes.
pub fn from_produced( descriptor: Produced<CompositeTypeDescriptor>, control: &ProductionControl<'_>, ) -> Result<Self, SQLError>
Sourcepub fn reserved_bytes(&self) -> usize
pub fn reserved_bytes(&self) -> usize
The new payload charged to this producer; preexisting immutable catalog metadata is retained by its original owner.
Methods from Deref<Target = CompositeTypeDescriptor>§
Sourcepub fn expand_record_with_control(
&self,
value: &Value,
control: &ProductionControl<'_>,
) -> Result<Produced<Value>, SQLError>
pub fn expand_record_with_control( &self, value: &Value, control: &ProductionControl<'_>, ) -> Result<Produced<Value>, SQLError>
Capture an expanded record’s field binding without reading any tuple payload. Dropped physical positions retain their original width and alignment.
pub fn clone_with_control( &self, control: &ProductionControl<'_>, ) -> Result<Produced<Self>, ValueRetentionError>
Sourcepub fn physical_width(&self) -> i16
pub fn physical_width(&self) -> i16
Number of physical positions, including trailing dropped attributes.
pub fn attribute(&self, name: &str) -> Option<(usize, &CompositeAttribute)>
Trait Implementations§
Source§impl Clone for OwnedCompositeTypeDescriptor
impl Clone for OwnedCompositeTypeDescriptor
Source§impl Debug for OwnedCompositeTypeDescriptor
impl Debug for OwnedCompositeTypeDescriptor
Auto Trait Implementations§
impl Freeze for OwnedCompositeTypeDescriptor
impl RefUnwindSafe for OwnedCompositeTypeDescriptor
impl Send for OwnedCompositeTypeDescriptor
impl Sync for OwnedCompositeTypeDescriptor
impl Unpin for OwnedCompositeTypeDescriptor
impl UnsafeUnpin for OwnedCompositeTypeDescriptor
impl UnwindSafe for OwnedCompositeTypeDescriptor
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> ErasedDestructor for Twhere
T: 'static,
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 more