#[non_exhaustive]pub enum ProjectBuildExtraHostAddresses {
Scalar(ProjectValue<String>),
List(Vec<ProjectValue<String>>),
}Expand description
Effective build-host addresses for one mapping key.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Scalar(ProjectValue<String>)
One raw string address.
List(Vec<ProjectValue<String>>)
Ordered raw string addresses.
Implementations§
Source§impl ProjectBuildExtraHostAddresses
impl ProjectBuildExtraHostAddresses
Sourcepub const fn as_scalar(&self) -> Option<&ProjectValue<String>>
pub const fn as_scalar(&self) -> Option<&ProjectValue<String>>
Returns the scalar address when that effective form is present.
Sourcepub fn as_list(&self) -> Option<&[ProjectValue<String>]>
pub fn as_list(&self) -> Option<&[ProjectValue<String>]>
Returns the ordered address list when that effective form is present.
Trait Implementations§
Source§impl Clone for ProjectBuildExtraHostAddresses
impl Clone for ProjectBuildExtraHostAddresses
Source§fn clone(&self) -> ProjectBuildExtraHostAddresses
fn clone(&self) -> ProjectBuildExtraHostAddresses
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 moreimpl Eq for ProjectBuildExtraHostAddresses
impl StructuralPartialEq for ProjectBuildExtraHostAddresses
Auto Trait Implementations§
impl Freeze for ProjectBuildExtraHostAddresses
impl RefUnwindSafe for ProjectBuildExtraHostAddresses
impl Send for ProjectBuildExtraHostAddresses
impl Sync for ProjectBuildExtraHostAddresses
impl Unpin for ProjectBuildExtraHostAddresses
impl UnsafeUnpin for ProjectBuildExtraHostAddresses
impl UnwindSafe for ProjectBuildExtraHostAddresses
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