Returns the content for Insert or Replace operations.
(&self)
| 406 | |
| 407 | /// Returns the content for Insert or Replace operations. |
| 408 | pub fn content(&self) -> Option<&[u8]> { |
| 409 | match self { |
| 410 | LeafOp::Insert { content, .. } => Some(content), |
| 411 | LeafOp::Replace { new_content, .. } => Some(new_content), |
| 412 | _ => None, |
| 413 | } |
| 414 | } |
| 415 | |
| 416 | /// Returns the token kind for an Insert operation. |
| 417 | pub fn token_kind(&self) -> Option<TokenKind> { |
nothing calls this directly
no outgoing calls
no test coverage detected