Trait rhyoea_common::ffi::vulkan_property::VulkanProperty [−][src]
The VulkanProperty
type.
Example
use rhyoea_common::ffi::vulkan_property::VulkanProperty; struct Qux { name: String, } impl Qux { fn new(name: String) -> Self { Self { name } } } impl VulkanProperty for Qux { fn selector_name(&self) -> &String { &self.name } fn selector_name_borrow(self) -> String { self.name } } let property = Qux::new("Bar".to_string()); assert_eq!(property.selector_name(), "Bar");
Required methods
fn selector_name(&self) -> &String
[src]
Returns the name
Example
use rhyoea_common::ffi::vulkan_property::VulkanProperty; struct Qux { name: String, } impl VulkanProperty for Qux { fn selector_name(&self) -> &String { &self.name } fn selector_name_borrow(self) -> String { self.name } }
fn selector_name_borrow(self) -> String
[src]
Returns the name borowed
Example
use rhyoea_common::ffi::vulkan_property::VulkanProperty; struct Qux { name: String, } impl VulkanProperty for Qux { fn selector_name(&self) -> &String { &self.name } fn selector_name_borrow(self) -> String { self.name } }