pub struct DomainPrefixes { /* private fields */ }Expand description
A validated set of prefixes.
The one construction point C17 is enforced at, and the reason
WriteDomain can be an enum with public variants without gaining a
second way in: a variant is spellable, but only with a value that has
already been checked.
Implementations§
Source§impl DomainPrefixes
impl DomainPrefixes
Sourcepub fn new(prefixes: Vec<Address>) -> Result<DomainPrefixes, AxError>
pub fn new(prefixes: Vec<Address>) -> Result<DomainPrefixes, AxError>
C17 at the construction point: any member under the reserved prefix refuses the whole set. An empty set is legal (a read-only actor writes nowhere).
§Errors
E_INVALID_ARGS naming the reserved member.
pub fn iter(&self) -> impl Iterator<Item = &Address>
Trait Implementations§
Source§impl Clone for DomainPrefixes
impl Clone for DomainPrefixes
Source§impl Debug for DomainPrefixes
impl Debug for DomainPrefixes
impl Eq for DomainPrefixes
Source§impl PartialEq for DomainPrefixes
impl PartialEq for DomainPrefixes
impl StructuralPartialEq for DomainPrefixes
Auto Trait Implementations§
impl Freeze for DomainPrefixes
impl RefUnwindSafe for DomainPrefixes
impl Send for DomainPrefixes
impl Sync for DomainPrefixes
impl Unpin for DomainPrefixes
impl UnsafeUnpin for DomainPrefixes
impl UnwindSafe for DomainPrefixes
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