Lines Matching defs:Label
65 pub struct Label<FileId> {
77 impl<FileId> Label<FileId> {
83 ) -> Label<FileId> {
84 Label {
95 pub fn primary(file_id: FileId, range: impl Into<Range<usize>>) -> Label<FileId> {
96 Label::new(LabelStyle::Primary, file_id, range)
102 pub fn secondary(file_id: FileId, range: impl Into<Range<usize>>) -> Label<FileId> {
103 Label::new(LabelStyle::Secondary, file_id, range)
107 pub fn with_message(mut self, message: impl Into<String>) -> Label<FileId> {
116 /// The position of a Diagnostic is considered to be the position of the [`Label`] that has the earliest starting position and has the highest style which appears in all the labels of the diagnostic.
133 pub labels: Vec<Label<FileId>>,
199 pub fn with_labels(mut self, labels: Vec<Label<FileId>>) -> Diagnostic<FileId> {