pub struct ContentContract {
pub extensions: String,
pub need_fullpath: bool,
pub block_extract: bool,
pub supports_no_game: bool,
pub persistent_data: bool,
}Fields§
§extensions: String§need_fullpath: bool§block_extract: bool§supports_no_game: bool§persistent_data: boolImplementations§
Source§impl ContentContract
impl ContentContract
pub fn new(extensions: impl Into<String>) -> Self
pub fn with_need_fullpath(self, need_fullpath: bool) -> Self
pub fn with_block_extract(self, block_extract: bool) -> Self
pub fn with_support_no_game(self, supports_no_game: bool) -> Self
pub fn with_persistent_data(self, persistent_data: bool) -> Self
pub fn apply_to_system_info(&self, info: &mut SystemInfo)
pub fn register_environment(&self, env: &mut Environment<'_>) -> bool
pub fn content_info_override(&self) -> ContentInfoOverride
Trait Implementations§
Source§impl Clone for ContentContract
impl Clone for ContentContract
Source§fn clone(&self) -> ContentContract
fn clone(&self) -> ContentContract
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ContentContract
impl Debug for ContentContract
Source§impl PartialEq for ContentContract
impl PartialEq for ContentContract
Source§fn eq(&self, other: &ContentContract) -> bool
fn eq(&self, other: &ContentContract) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Eq for ContentContract
impl StructuralPartialEq for ContentContract
Auto Trait Implementations§
impl Freeze for ContentContract
impl RefUnwindSafe for ContentContract
impl Send for ContentContract
impl Sync for ContentContract
impl Unpin for ContentContract
impl UnsafeUnpin for ContentContract
impl UnwindSafe for ContentContract
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more