pub struct UlimitRange { /* private fields */ }Expand description
Long syntax with independent soft and hard limits.
Implementations§
Source§impl UlimitRange
impl UlimitRange
Sourcepub const fn span(&self) -> SourceSpan
pub const fn span(&self) -> SourceSpan
Returns the complete range mapping span.
Sourcepub const fn soft(&self) -> Option<&Located<LimitValue>>
pub const fn soft(&self) -> Option<&Located<LimitValue>>
Returns the explicitly authored soft limit.
Sourcepub const fn hard(&self) -> Option<&Located<LimitValue>>
pub const fn hard(&self) -> Option<&Located<LimitValue>>
Returns the explicitly authored hard limit.
Sourcepub fn extension_fields(&self) -> &[FieldReference]
pub fn extension_fields(&self) -> &[FieldReference]
Returns retained x- fields.
Sourcepub fn unknown_fields(&self) -> &[FieldReference]
pub fn unknown_fields(&self) -> &[FieldReference]
Returns unrecognized range fields.
Trait Implementations§
Source§impl Clone for UlimitRange
impl Clone for UlimitRange
Source§fn clone(&self) -> UlimitRange
fn clone(&self) -> UlimitRange
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 UlimitRange
impl Debug for UlimitRange
impl Eq for UlimitRange
Source§impl PartialEq for UlimitRange
impl PartialEq for UlimitRange
impl StructuralPartialEq for UlimitRange
Auto Trait Implementations§
impl Freeze for UlimitRange
impl RefUnwindSafe for UlimitRange
impl Send for UlimitRange
impl Sync for UlimitRange
impl Unpin for UlimitRange
impl UnsafeUnpin for UlimitRange
impl UnwindSafe for UlimitRange
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