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 file

Synced as text in the workspace. Line-ending translations are performed automatically.

Stored as: deltas in RCS format

Non-text file

Synced as binary files in the workspace. Stored compressed within the depot.

Stored as: full file, compressed

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 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

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).

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

Trait Implementations

impl Debug for BaseFileType
[src]

Formats the value using the given formatter. Read more

impl Clone for BaseFileType
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl PartialEq for BaseFileType
[src]

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

impl Eq for BaseFileType
[src]

impl Default for BaseFileType
[src]

Returns the "default value" for a type. Read more

impl FromStr for BaseFileType
[src]

The associated error which can be returned from parsing.

Parses a string s to return a value of this type. Read more

impl Display for BaseFileType
[src]

Formats the value using the given formatter. Read more

Auto Trait Implementations