OwnerShip밴다이어그램으로 소유권 이해

link


벤다이어그램 이해

오너쉽 관계를 잘이해하자(구현할 때 중요하다impl)

  • T는 오너쉽을 가지고 있다. T는 하위(&, &mut) 모두 커버되는 SuperSet

    • T 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 \]

Reference and Mutable Reference 관련 글