pub enum BaseFileType {
Text,
Binary,
Symlink,
Unicode,
Utf8,
Utf16,
Unknown(String),
// some variants omitted
}
Expand description
Perforce base file type.
§Example
assert_eq!(p4_cmd::BaseFileType::Utf8.to_string(), "utf8");
assert_eq!("utf8".parse::<p4_cmd::BaseFileType>().unwrap(), p4_cmd::BaseFileType::Utf8);
Variants§
Text
Text file
Synced as text in the workspace. Line-ending translations are performed automatically.
Stored as: deltas in RCS format
Binary
Non-text file
Synced as binary files in the workspace. Stored compressed within the depot.
Stored as: full file, compressed
Symlink
Symbolic link
Helix Server applications on UNIX, OS X, recent versions of Windows treat these files as symbolic links. On other platforms, these files appear as (small) text files.
On Windows, you require admin privileges or an appropriate group policy must be set, otherwise, you get text files.
Stored as: deltas in RCS format
Unicode
Unicode file
Services operating in unicode mode support the unicode file type. These files are translated into the local character set specified by P4CHARSET.
Line-ending translations are performed automatically.
Services not in unicode mode do not support the unicode file type.
Stored as: RCS deltas in UTF-8 format
Utf8
Unicode file
Synced in the client workspace with the UTF-8 BOM (byte order mark).
Whether the service is in unicode mode or not, files are transferred as UTF-8 in the client workspace.
Line-ending translations are performed automatically.
Stored as: RCS deltas in UTF-8 format without the UTF-8 BOM (byte order mark).
Utf16
Unicode file
Whether the service is in unicode mode or not, files are transferred as UTF-8, and translated to UTF-16 (with byte order mark, in the byte order appropriate for the user’s machine) in the client workspace.
Line-ending translations are performed automatically.
Stored as: RCS deltas in UTF-8 format
Unknown(String)
Trait Implementations§
Source§impl Clone for BaseFileType
impl Clone for BaseFileType
Source§fn clone(&self) -> BaseFileType
fn clone(&self) -> BaseFileType
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more