Learn Rust - Using PhantomData as a Type Marker. ... let other_auth = Authenticator::<Foo>::new(); assert!(user_auth.auth(2)); assert!(!user_auth.auth(1)); ...
確定! 回上一頁