Enum p4_cmd::BaseFileType [−][src]
pub enum BaseFileType { Text, Binary, Symlink, Unicode, Utf8, Utf16, Unknown(String), // some variants omitted }
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
impl Debug for BaseFileType
[src]
impl Debug for BaseFileType
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl Clone for BaseFileType
[src]
impl Clone for BaseFileType
fn clone(&self) -> BaseFileType
[src]
fn clone(&self) -> BaseFileType
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
impl PartialEq for BaseFileType
[src]
impl PartialEq for BaseFileType
fn eq(&self, other: &BaseFileType) -> bool
[src]
fn eq(&self, other: &BaseFileType) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, other: &BaseFileType) -> bool
[src]
fn ne(&self, other: &BaseFileType) -> bool
This method tests for !=
.
impl Eq for BaseFileType
[src]
impl Eq for BaseFileType
impl Default for BaseFileType
[src]
impl Default for BaseFileType
impl FromStr for BaseFileType
[src]
impl FromStr for BaseFileType
type Err = Error
The associated error which can be returned from parsing.
fn from_str(s: &str) -> Result<Self, Self::Err>
[src]
fn from_str(s: &str) -> Result<Self, Self::Err>
Parses a string s
to return a value of this type. Read more
impl Display for BaseFileType
[src]
impl Display for BaseFileType
Auto Trait Implementations
impl Send for BaseFileType
impl Send for BaseFileType
impl Sync for BaseFileType
impl Sync for BaseFileType