pub enum ExtraHosts {
Short {
span: SourceSpan,
entries: Vec<ShortExtraHost>,
},
Long {
span: SourceSpan,
entries: Vec<LongExtraHost>,
},
}Expand description
The authored collection form of extra_hosts.
Variants§
Short
Sequence-based short syntax.
Fields
§
span: SourceSpanThe complete sequence span.
§
entries: Vec<ShortExtraHost>Host mappings in authored order.
Long
Mapping-based long syntax.
Fields
§
span: SourceSpanThe complete mapping span.
§
entries: Vec<LongExtraHost>Host mappings in authored order.
Implementations§
Source§impl ExtraHosts
impl ExtraHosts
Sourcepub const fn span(&self) -> SourceSpan
pub const fn span(&self) -> SourceSpan
Returns the complete collection span.
Sourcepub fn contains_host_gateway(&self) -> bool
pub fn contains_host_gateway(&self) -> bool
Reports whether any entry uses the implementation token host-gateway.
Trait Implementations§
Source§impl Clone for ExtraHosts
impl Clone for ExtraHosts
Source§fn clone(&self) -> ExtraHosts
fn clone(&self) -> ExtraHosts
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 ExtraHosts
impl Debug for ExtraHosts
impl Eq for ExtraHosts
Source§impl PartialEq for ExtraHosts
impl PartialEq for ExtraHosts
impl StructuralPartialEq for ExtraHosts
Auto Trait Implementations§
impl Freeze for ExtraHosts
impl RefUnwindSafe for ExtraHosts
impl Send for ExtraHosts
impl Sync for ExtraHosts
impl Unpin for ExtraHosts
impl UnsafeUnpin for ExtraHosts
impl UnwindSafe for ExtraHosts
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