pub struct ProjectFile { /* private fields */ }Available on crate feature
generic only.Expand description
プロジェクトファイルにデータを保存・取得するための構造体。
Implementations§
Source§impl ProjectFile
impl ProjectFile
Sourcepub unsafe fn from_raw(raw: *mut PROJECT_FILE) -> Self
pub unsafe fn from_raw(raw: *mut PROJECT_FILE) -> Self
Sourcepub fn get_param_string(&self, key: &str) -> Result<String, ProjectFileError>
pub fn get_param_string(&self, key: &str) -> Result<String, ProjectFileError>
Sourcepub fn get_param_binary(
&self,
key: &str,
data: &mut [u8],
) -> Result<(), ProjectFileError>
pub fn get_param_binary( &self, key: &str, data: &mut [u8], ) -> Result<(), ProjectFileError>
プロジェクトに保存されているバイナリデータを取得します。
§Errors
keyにヌル文字が含まれている場合、失敗します。dataの長さが保存されているデータの長さと一致しない場合、失敗します。- 指定されたキーに対応するデータが存在しない場合、失敗します。
Sourcepub fn set_param_string(
&mut self,
key: &str,
value: &str,
) -> Result<(), ProjectFileError>
pub fn set_param_string( &mut self, key: &str, value: &str, ) -> Result<(), ProjectFileError>
Sourcepub fn set_param_binary(
&mut self,
key: &str,
data: &[u8],
) -> Result<(), ProjectFileError>
pub fn set_param_binary( &mut self, key: &str, data: &[u8], ) -> Result<(), ProjectFileError>
Sourcepub fn clear_params(&mut self)
pub fn clear_params(&mut self)
プロジェクトに保存されているデータをすべて削除します。
Source§impl ProjectFile
impl ProjectFile
Auto Trait Implementations§
impl Freeze for ProjectFile
impl RefUnwindSafe for ProjectFile
impl !Send for ProjectFile
impl !Sync for ProjectFile
impl Unpin for ProjectFile
impl UnwindSafe for ProjectFile
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
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more