pub struct SafetyDerivationProfile { /* private fields */ }Expand description
Registry-owned profiles which affect safety derivation and lowering identity.
Implementations§
Source§impl SafetyDerivationProfile
impl SafetyDerivationProfile
Sourcepub fn new(
semantic: SemanticProfileBinding,
lowering: SchemaLoweringProfileBinding,
) -> Result<Self, Diagnostic>
pub fn new( semantic: SemanticProfileBinding, lowering: SchemaLoweringProfileBinding, ) -> Result<Self, Diagnostic>
Bind already registry-resolved semantic and lowering profiles.
Sourcepub const fn semantic(&self) -> &SemanticProfileBinding
pub const fn semantic(&self) -> &SemanticProfileBinding
Return the exact semantic-profile binding.
Sourcepub const fn lowering(&self) -> &SchemaLoweringProfileBinding
pub const fn lowering(&self) -> &SchemaLoweringProfileBinding
Return the exact schema-lowering-profile binding.
Trait Implementations§
Source§impl Clone for SafetyDerivationProfile
impl Clone for SafetyDerivationProfile
Source§fn clone(&self) -> SafetyDerivationProfile
fn clone(&self) -> SafetyDerivationProfile
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 SafetyDerivationProfile
impl Debug for SafetyDerivationProfile
impl Eq for SafetyDerivationProfile
Source§impl PartialEq for SafetyDerivationProfile
impl PartialEq for SafetyDerivationProfile
Source§impl Serialize for SafetyDerivationProfile
impl Serialize for SafetyDerivationProfile
impl StructuralPartialEq for SafetyDerivationProfile
Auto Trait Implementations§
impl Freeze for SafetyDerivationProfile
impl RefUnwindSafe for SafetyDerivationProfile
impl Send for SafetyDerivationProfile
impl Sync for SafetyDerivationProfile
impl Unpin for SafetyDerivationProfile
impl UnsafeUnpin for SafetyDerivationProfile
impl UnwindSafe for SafetyDerivationProfile
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