1
- use re_types_core:: ComponentDescriptor ;
1
+ use re_types_core:: ComponentIdentifier ;
2
2
3
3
use crate :: path:: EntityPath ;
4
4
5
- /// A [`EntityPath`] plus a [`ComponentDescriptor `].
5
+ /// A [`EntityPath`] plus a [`ComponentIdentifier `].
6
6
///
7
7
/// Example: `camera/left/points:Points3D:color`
8
8
#[ derive( Clone , Debug , PartialEq , Eq , PartialOrd , Ord , Hash ) ]
@@ -12,15 +12,15 @@ pub struct ComponentPath {
12
12
pub entity_path : EntityPath ,
13
13
14
14
/// e.g. `Points3D:color`
15
- pub component_descriptor : ComponentDescriptor ,
15
+ pub component : ComponentIdentifier ,
16
16
}
17
17
18
18
impl ComponentPath {
19
19
#[ inline]
20
- pub fn new ( entity_path : EntityPath , component_descriptor : ComponentDescriptor ) -> Self {
20
+ pub fn new ( entity_path : EntityPath , component : ComponentIdentifier ) -> Self {
21
21
Self {
22
22
entity_path,
23
- component_descriptor ,
23
+ component ,
24
24
}
25
25
}
26
26
@@ -30,16 +30,16 @@ impl ComponentPath {
30
30
}
31
31
32
32
#[ inline]
33
- pub fn component_descriptor ( & self ) -> & ComponentDescriptor {
34
- & self . component_descriptor
33
+ pub fn component ( & self ) -> & ComponentIdentifier {
34
+ & self . component
35
35
}
36
36
}
37
37
38
38
impl std:: fmt:: Display for ComponentPath {
39
39
fn fmt ( & self , f : & mut std:: fmt:: Formatter < ' _ > ) -> std:: fmt:: Result {
40
40
self . entity_path . fmt ( f) ?;
41
41
f. write_str ( ":" ) ?;
42
- self . component_descriptor . fmt ( f) ?;
42
+ self . component . fmt ( f) ?;
43
43
Ok ( ( ) )
44
44
}
45
45
}
0 commit comments