Code view:

A painting is a person's account of this edit as text, recorded independently of the node mapping - a rendering often has several equally defensible answers where the mapping has one. Deletions and insertions carry no position on the opposite side in a painting, so that panel draws no caret for them.

Before

1/// Enum representing the possible traffic direction (incoming or outgoing).
2#[derive(Clone, Copy, PartialEq, Eq, Debug, Default, Hash)]
3pub enum TrafficDirection {
4 /// Incoming traffic (from remote address to local interface)
5 #[default]
6 Incoming,
7 /// Outgoing traffic (from local interface to remote address)
8 Outgoing,
9}
10

After

1/// Enum representing the possible traffic direction (incoming or outgoing).
2#[derive(Clone, Copy, PartialEq, Eq, Debug, Default)]
3pub enum TrafficDirection {
4 /// Incoming traffic (from remote address to local interface)
5 #[default]
6 Incoming,
7 /// Outgoing traffic (from local interface to remote address)
8 Outgoing,
9}
10

Before

source_file
line_comment
// "//"
outer_doc_comment_marker
/ "/"
doc_comment " Enum representing the possible traffic direction (incoming "...
attribute_item
# "#"
[ "["
attribute
identifier "derive"
token_tree
( "("
identifier "Clone"
, ","
identifier "Copy"
, ","
identifier "PartialEq"
, ","
identifier "Eq"
, ","
identifier "Debug"
, ","
identifier "Default"
, ","
identifier "Hash"
) ")"
] "]"
enum_item (+30 nodes collapsed)

After

source_file
line_comment
// "//"
outer_doc_comment_marker
/ "/"
doc_comment " Enum representing the possible traffic direction (incoming "...
attribute_item
# "#"
[ "["
attribute
identifier "derive"
token_tree
( "("
identifier "Clone"
, ","
identifier "Copy"
, ","
identifier "PartialEq"
, ","
identifier "Eq"
, ","
identifier "Debug"
, ","
identifier "Default"
) ")"
] "]"
enum_item (+30 nodes collapsed)