We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent de1a51d commit b2f1da2Copy full SHA for b2f1da2
src/lit.rs
@@ -505,6 +505,24 @@ impl Display for LitFloat {
505
}
506
507
508
+impl LitBool {
509
+ pub fn new(value: bool, span: Span) -> Self {
510
+ LitBool { value, span }
511
+ }
512
+
513
+ pub fn value(&self) -> bool {
514
+ self.value
515
516
517
+ pub fn span(&self) -> Span {
518
+ self.span
519
520
521
+ pub fn set_span(&mut self, span: Span) {
522
+ self.span = span;
523
524
+}
525
526
#[cfg(feature = "extra-traits")]
527
mod debug_impls {
528
use super::*;
0 commit comments