pub struct GeneratedUlimits { /* private fields */ }Expand description
Ordered generated service limits, including an explicit empty mapping.
Implementations§
Source§impl GeneratedUlimits
impl GeneratedUlimits
Sourcepub fn new(entries: Vec<GeneratedUlimit>) -> Result<Self, GenerationError>
pub fn new(entries: Vec<GeneratedUlimit>) -> Result<Self, GenerationError>
Creates an ordered unique-name limit mapping.
§Errors
Rejects duplicate names without reordering the retained entries.
Sourcepub fn entries(&self) -> &[GeneratedUlimit]
pub fn entries(&self) -> &[GeneratedUlimit]
Returns limits in generated output order.
Trait Implementations§
Source§impl Clone for GeneratedUlimits
impl Clone for GeneratedUlimits
Source§fn clone(&self) -> GeneratedUlimits
fn clone(&self) -> GeneratedUlimits
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 GeneratedUlimits
impl Debug for GeneratedUlimits
impl Eq for GeneratedUlimits
Source§impl PartialEq for GeneratedUlimits
impl PartialEq for GeneratedUlimits
impl StructuralPartialEq for GeneratedUlimits
Auto Trait Implementations§
impl Freeze for GeneratedUlimits
impl RefUnwindSafe for GeneratedUlimits
impl Send for GeneratedUlimits
impl Sync for GeneratedUlimits
impl Unpin for GeneratedUlimits
impl UnsafeUnpin for GeneratedUlimits
impl UnwindSafe for GeneratedUlimits
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