OwnerShip밴다이어그램으로 소유권 이해
link
벤다이어그램 이해
오너쉽 관계를 잘이해하자(구현할 때 중요하다impl)
-
T
는 오너쉽을 가지고 있다.T
는 하위(&
,&mut
) 모두 커버되는 SuperSetT
is a superset of (&
,&mut
), denoted by
-
&
와&mut
은 disjoint set 관계- &(reference) and (&mut) are disjoint set
\[T \supseteq Reference, ref mut \]
\[Reference \cup ref mut \]