pub struct CatalogCombineInput<'a> {
pub content: &'a str,
pub label: Option<&'a str>,
}Expand description
One catalog input passed to super::combine_catalogs.
Fields§
§content: &'a strCatalog content to parse and include in the combine operation.
label: Option<&'a str>Optional human-readable label used in diagnostics.
Implementations§
Source§impl<'a> CatalogCombineInput<'a>
impl<'a> CatalogCombineInput<'a>
Sourcepub const fn new(content: &'a str) -> CatalogCombineInput<'a>
pub const fn new(content: &'a str) -> CatalogCombineInput<'a>
Creates a combine input without a diagnostic label.
Sourcepub const fn labeled(
content: &'a str,
label: &'a str,
) -> CatalogCombineInput<'a>
pub const fn labeled( content: &'a str, label: &'a str, ) -> CatalogCombineInput<'a>
Creates a combine input with a diagnostic label.
Trait Implementations§
Source§impl<'a> Clone for CatalogCombineInput<'a>
impl<'a> Clone for CatalogCombineInput<'a>
Source§fn clone(&self) -> CatalogCombineInput<'a>
fn clone(&self) -> CatalogCombineInput<'a>
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<'a> Copy for CatalogCombineInput<'a>
Source§impl<'a> Debug for CatalogCombineInput<'a>
impl<'a> Debug for CatalogCombineInput<'a>
impl<'a> Eq for CatalogCombineInput<'a>
Source§impl<'a> PartialEq for CatalogCombineInput<'a>
impl<'a> PartialEq for CatalogCombineInput<'a>
Source§fn eq(&self, other: &CatalogCombineInput<'a>) -> bool
fn eq(&self, other: &CatalogCombineInput<'a>) -> bool
Tests for
self and other values to be equal, and is used by ==.impl<'a> StructuralPartialEq for CatalogCombineInput<'a>
Auto Trait Implementations§
impl<'a> Freeze for CatalogCombineInput<'a>
impl<'a> RefUnwindSafe for CatalogCombineInput<'a>
impl<'a> Send for CatalogCombineInput<'a>
impl<'a> Sync for CatalogCombineInput<'a>
impl<'a> Unpin for CatalogCombineInput<'a>
impl<'a> UnsafeUnpin for CatalogCombineInput<'a>
impl<'a> UnwindSafe for CatalogCombineInput<'a>
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